1
0
forked from ScoDoc/ScoDoc

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] [Unit]
Description=ScoDoc 7 service Description=ScoDoc 7 service
After=postgresql.service After=network.target postgresql@11-main.service
Requires=postgresql.service Requires=postgresql@11-main.service
PartOf=postgresql.service PartOf=postgresql@11-main.service
StartLimitIntervalSec=0 StartLimitIntervalSec=0
[Service] [Service]
@ -17,9 +17,8 @@ Restart=always
RestartSec=1 RestartSec=1
User=root User=root
ExecStart=/opt/scodoc/bin/zopectl start ExecStart=/opt/scodoc/bin/zopectl start
ExecStop=/opt/scodoc/bin/zopectl ExecStop ExecStop=/opt/scodoc/bin/zopectl stop
ExecReload=/opt/scodoc/bin/zopectl restart ExecReload=/opt/scodoc/bin/zopectl restart
[Install] [Install]
WantedBy=multi-user.target WantedBy=postgresql@11-main.service