ScoDoc-Lille/config/etc/scodoc.service

26 lines
500 B
SYSTEMD
Raw Normal View History

2020-12-03 11:22:40 +01:00
# 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