1
0
forked from ScoDoc/ScoDoc
ScoDoc-Front/tools/etc/scodoc.service

27 lines
616 B
SYSTEMD
Raw Normal View History

2020-12-03 11:22:40 +01:00
# ScoDoc7 service
# Zope based
# Depends on {{postgresql}} (replaced by installation script by
# postgresql@11-main.service on Debian 10
# postgresql on Debian <= 9
# => is restarted when {{postgresql}} restarts
2020-12-03 11:22:40 +01:00
#
[Unit]
Description=ScoDoc 7 service
After=network.target {{postgresql}}
Requires={{postgresql}}
PartOf={{postgresql}}
2020-12-03 11:22:40 +01:00
StartLimitIntervalSec=0
[Service]
Type=forking
PIDFile=/opt/scodoc/var/Z2.pid
Restart=always
RestartSec=1
User=root
ExecStart=/opt/scodoc/bin/zopectl start
2020-12-06 15:20:24 +01:00
ExecStop=/opt/scodoc/bin/zopectl stop
2020-12-03 11:22:40 +01:00
ExecReload=/opt/scodoc/bin/zopectl restart
[Install]
WantedBy={{postgresql}}