e3459b81d4
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/920514 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/gnuhealth?expand=0&rev=89
45 lines
1.1 KiB
Desktop File
45 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=GNU Health server
|
|
After=syslog.target
|
|
Requires=postgresql.service
|
|
Conflicts=trytond.service
|
|
|
|
[Service]
|
|
# some security settings
|
|
PrivateTmp=true
|
|
ProtectSystem=true
|
|
ProtectHome=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
ProtectControlGroups=true
|
|
MountFlags=private
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
# added automatically, for details please see
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelLogs=true
|
|
RestrictRealtime=true
|
|
# end of automatic additions
|
|
MemoryDenyWriteExecute=true
|
|
|
|
Type=simple
|
|
User=tryton
|
|
Group=tryton
|
|
PIDFile=/var/lib/trytond/trytond.pid
|
|
|
|
ExecStart=/usr/bin/trytond --config /etc/tryton/trytond.conf --pidfile=/var/lib/tryton/trytond.pid --logconf=/etc/tryton/trytond_log.conf
|
|
|
|
# Give a reasonable amount of time for the server to start up/shut down
|
|
TimeoutSec=300
|
|
|
|
# We rely on systemd to restart trytond if it dies
|
|
Restart=always
|
|
|
|
#Set the environment variables that GNU Health needs
|
|
EnvironmentFile=/etc/tryton/gnuhealthrc
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|