diff options
author | Severin Glöckner | 2018-12-31 14:14:25 +0100 |
---|---|---|
committer | Severin Glöckner | 2018-12-31 14:14:25 +0100 |
commit | 96f3209845ced4d53030a14261b2567f5e090c6f (patch) | |
tree | aa236831be98200aa2b1bd8d1dfe4e408e307bc9 /wesnothd-1.8.service | |
parent | 5d27fc333066328eb9338b343f67063cd0bd2ee9 (diff) | |
download | aur-96f3209845ced4d53030a14261b2567f5e090c6f.tar.gz |
service: fix pipe management
Diffstat (limited to 'wesnothd-1.8.service')
-rw-r--r-- | wesnothd-1.8.service | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/wesnothd-1.8.service b/wesnothd-1.8.service index 6013b204010b..59bc6e4b6715 100644 --- a/wesnothd-1.8.service +++ b/wesnothd-1.8.service @@ -9,19 +9,22 @@ Conflicts=wesnothd.service wesnothd-1.0.service wesnothd-1.2.service wesnothd-1. [Service] # If wesnothd is started from within the game it runs under a different user. # Deleting the pipe resets owner, group and mode. -ExecStopPre=/bin/rm -f /run/wesnothd-1.8/socket +ExecStartPre=/bin/rm -f /run/wesnothd-1.8/socket ExecStart=/usr/bin/wesnothd-1.8 -t 2 -T 5 # You can use -c to specify a same configuration file # (and make sure wesnothd has the required access permissions). -SyslogIdentifier=Wesnothd-1.8 -User=nobody -Group=users - # Remove remaining administration pipe: ExecStopPost=/bin/rm -f /run/wesnothd-1.8/socket +SyslogIdentifier=Wesnothd-1.6 +# Apply security settings only to ExecStart, so the Pre & Post steps run as root +PermissionsStartOnly=yes +WorkingDirectory=/run/wesnothd-1.6 +User=nobody +Group=users + # Additional security-related features: PrivateTmp=yes PrivateDevices=yes |