forked from ScoDoc/DocScoDoc
systemd service for ScoDoc7
This commit is contained in:
parent
995b904164
commit
4be0b94e48
25
config/etc/scodoc.service
Normal file
25
config/etc/scodoc.service
Normal file
@ -0,0 +1,25 @@
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user