ScoDoc-PE/config/etc/scodoc.service

25 lines
479 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
2021-05-16 17:03:46 +02:00
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]
2021-05-16 17:03:46 +02:00
WantedBy=postgresql