diff --git a/config/etc/scodoc.service b/config/etc/scodoc.service index c52f70c..927420f 100644 --- a/config/etc/scodoc.service +++ b/config/etc/scodoc.service @@ -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