1
0
forked from ScoDoc/ScoDoc

systemd service for ScoDoc7

This commit is contained in:
viennet 2020-12-03 11:22:40 +01:00
parent 995b904164
commit 4be0b94e48

25
config/etc/scodoc.service Normal file
View File

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