Fixed systemd postgresql dependency

This commit is contained in:
viennet 2020-12-06 15:20:24 +01:00
parent 46537f13c4
commit 9393f0d17b

View File

@ -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