26 lines
500 B
SYSTEMD
26 lines
500 B
SYSTEMD
|
# 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
|
||
|
|