Koha-clms/debian/systemd/koha-sip@.service

36 lines
1020 B
Desktop File

[Unit]
Description=Koha SIP server for %i
Documentation=man:koha-sip(8)
PartOf=koha@%i.target
Requires=koha-create-dirs@%i.service
Before=koha@%i.target
After=koha-create-dirs@%i.service
AssertPathExists=/etc/koha/sites/%i/SIPconfig.xml
StartLimitIntervalSec=60
StartLimitBurst=3
[Service]
Type=simple
User=%i-koha
Group=%i-koha
SyslogIdentifier=%i-koha-sip
# Capture stdout/stderr to the same files the daemon(1) wrapper used under
# SysV, so log locations are identical whichever init package is installed.
StandardOutput=append:/var/log/koha/%i/sip-output.log
StandardError=append:/var/log/koha/%i/sip-error.log
WorkingDirectory=/var/lib/koha/%i
Environment=KOHA_CONF=/etc/koha/sites/%i/koha-conf.xml
Environment=KOHA_HOME=/usr/share/koha
Environment=PERL5LIB=/usr/share/koha/lib
ExecStart=/usr/bin/perl /usr/share/koha/lib/C4/SIP/SIPServer.pm /etc/koha/sites/%i/SIPconfig.xml
ProtectSystem=full
ProtectHome=yes
PrivateTmp=yes
NoNewPrivileges=yes
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=koha@%i.target