From 4be0b94e4865b6884afa687a9a20510d2370a717 Mon Sep 17 00:00:00 2001 From: viennet Date: Thu, 3 Dec 2020 11:22:40 +0100 Subject: [PATCH] systemd service for ScoDoc7 --- config/etc/scodoc.service | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 config/etc/scodoc.service diff --git a/config/etc/scodoc.service b/config/etc/scodoc.service new file mode 100644 index 00000000..c52f70c9 --- /dev/null +++ b/config/etc/scodoc.service @@ -0,0 +1,25 @@ +# ScoDoc7 service +# Zope based +# Depends on postgresql +# => is restarted when postgresql restarts +# +[Unit] +Description=ScoDoc 7 service +After=postgresql.service +Requires=postgresql.service +PartOf=postgresql.service +StartLimitIntervalSec=0 + +[Service] +Type=forking +PIDFile=/opt/scodoc/var/Z2.pid +Restart=always +RestartSec=1 +User=root +ExecStart=/opt/scodoc/bin/zopectl start +ExecStop=/opt/scodoc/bin/zopectl ExecStop +ExecReload=/opt/scodoc/bin/zopectl restart + +[Install] +WantedBy=multi-user.target +