summarylogtreecommitdiffstats
path: root/wesnothd-1.6.service
diff options
context:
space:
mode:
authorSeverin Glöckner2018-12-31 14:13:10 +0100
committerSeverin Glöckner2018-12-31 14:13:55 +0100
commit137752338d93e615991973ace0ce512ba063bc81 (patch)
treedc6590e6104f62791c99cf56218841961d44650c /wesnothd-1.6.service
parentc22b3c8fb3220e5d69bbf6547df62461bb42be00 (diff)
downloadaur-137752338d93e615991973ace0ce512ba063bc81.tar.gz
service: fix pipe management
Diffstat (limited to 'wesnothd-1.6.service')
-rw-r--r--wesnothd-1.6.service13
1 files changed, 8 insertions, 5 deletions
diff --git a/wesnothd-1.6.service b/wesnothd-1.6.service
index 0939f1a3fb3..e451c7b6612 100644
--- a/wesnothd-1.6.service
+++ b/wesnothd-1.6.service
@@ -9,19 +9,22 @@ Conflicts=wesnothd.service wesnothd-1.0.servicewesnothd-1.2.service wesnothd-1.4
[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.6/socket
+ExecStartPre=/bin/rm -f /run/wesnothd-1.6/socket
-ExecStart=/usr/bin/wesnothd-1.6 -t 2 -T 5
+ExecStart=/usr/bin/wesnothd-1.6
# You can use -c to specify a same configuration file
# (and make sure wesnothd has the required access permissions).
+# Remove remaining administration pipe:
+ExecStopPost=/bin/rm -f /run/wesnothd-1.6/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
-# Remove remaining administration pipe:
-ExecStopPost=/bin/rm -f /run/wesnothd-1.6/socket
-
# Additional security-related features:
ProtectSystem=strict
ProtectHome=yes