DocScoDoc/config/etc/scodoc.service

25 lines
543 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
2020-12-06 15:20:24 +01:00
After=network.target postgresql@11-main.service
Requires=postgresql@11-main.service
PartOf=postgresql@11-main.service
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]
2020-12-06 15:20:24 +01:00
WantedBy=postgresql@11-main.service