From 9393f0d17bbacfe533ccb03ed97adba9b576c35f Mon Sep 17 00:00:00 2001 From: viennet Date: Sun, 6 Dec 2020 15:20:24 +0100 Subject: [PATCH] Fixed systemd postgresql dependency --- config/etc/scodoc.service | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/config/etc/scodoc.service b/config/etc/scodoc.service index c52f70c98..927420fc5 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