forked from ScoDoc/DocScoDoc
Fixed systemd postgresql dependency
This commit is contained in:
parent
46537f13c4
commit
9393f0d17b
@ -5,9 +5,9 @@
|
||||
#
|
||||
[Unit]
|
||||
Description=ScoDoc 7 service
|
||||
After=postgresql.service
|
||||
Requires=postgresql.service
|
||||
PartOf=postgresql.service
|
||||
After=network.target postgresql@11-main.service
|
||||
Requires=postgresql@11-main.service
|
||||
PartOf=postgresql@11-main.service
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
@ -17,9 +17,8 @@ Restart=always
|
||||
RestartSec=1
|
||||
User=root
|
||||
ExecStart=/opt/scodoc/bin/zopectl start
|
||||
ExecStop=/opt/scodoc/bin/zopectl ExecStop
|
||||
ExecStop=/opt/scodoc/bin/zopectl stop
|
||||
ExecReload=/opt/scodoc/bin/zopectl restart
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
WantedBy=postgresql@11-main.service
|
||||
|
Loading…
Reference in New Issue
Block a user