2017-08-18 15:03:55 +02:00
|
|
|
[Unit]
|
|
|
|
Description=WebDAV Server for GNU Health on Database %I
|
|
|
|
After=syslog.target
|
|
|
|
Requires=gnuhealth.service
|
|
|
|
|
|
|
|
[Service]
|
2021-10-05 18:12:00 +02:00
|
|
|
# added automatically, for details please see
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=true
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectHostname=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
# end of automatic additions
|
2017-08-18 15:03:55 +02:00
|
|
|
Type=simple
|
|
|
|
User=tryton
|
|
|
|
Group=tryton
|
|
|
|
PIDFile=/var/lib/trytond/gnuhealth-webdav.pid
|
|
|
|
|
2018-12-29 17:41:13 +01:00
|
|
|
ExecStart=/usr/bin/gnuhealth-webdav-server -c /etc/tryton/trytond.conf -d %I -v
|
2017-08-18 15:03:55 +02:00
|
|
|
|
|
|
|
# Give a reasonable amount of time for the server to start up/shut down
|
|
|
|
TimeoutSec=300
|
|
|
|
|
|
|
|
# We rely on systemd to restart WebDAV Server if it dies
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|