summarylogtreecommitdiffstats
path: root/wesnothd-1.10.service
diff options
context:
space:
mode:
authorSeverin Glöckner2018-12-31 14:14:52 +0100
committerSeverin Glöckner2018-12-31 14:14:52 +0100
commit0a8d6f24ec9af45719a667ae54f77349d0562c0b (patch)
treef6f89295cb1cd6ff3a078b17ac46fa2c2ae12ff2 /wesnothd-1.10.service
parent0b15ac8942e4a98c1dec5678650af43b973b098d (diff)
downloadaur-0a8d6f24ec9af45719a667ae54f77349d0562c0b.tar.gz
service: fix pipe management
Diffstat (limited to 'wesnothd-1.10.service')
-rw-r--r--wesnothd-1.10.service13
1 files changed, 8 insertions, 5 deletions
diff --git a/wesnothd-1.10.service b/wesnothd-1.10.service
index 7a8a26fda111..81297d003e0f 100644
--- a/wesnothd-1.10.service
+++ b/wesnothd-1.10.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.10/socket
+ExecStartPre=/bin/rm -f /run/wesnothd-1.10/socket
-ExecStart=/usr/bin/wesnothd-1.10 -t 2 -T 5
+ExecStart=/usr/bin/wesnothd-1.10
# 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.10/socket
+
SyslogIdentifier=Wesnothd-1.10
+# Apply security settings only to ExecStart, so the Pre & Post steps run as root
+PermissionsStartOnly=yes
+WorkingDirectory=/run/wesnothd-1.10
User=nobody
Group=users
-# Remove remaining administration pipe:
-ExecStopPost=/bin/rm -f /run/wesnothd-1.10/socket
-
# Additional security-related features:
PrivateTmp=yes
PrivateDevices=yes