diff options
author | Severin Glöckner | 2018-10-06 01:01:11 +0200 |
---|---|---|
committer | Severin Glöckner | 2018-10-06 01:01:11 +0200 |
commit | 567ee5e0ffe85fedc25fdf7dc5d52b042692c5a5 (patch) | |
tree | 43997753a32a82475ce3089d3d76c1430d6930fd /wesnothd-1.8.service | |
download | aur-567ee5e0ffe85fedc25fdf7dc5d52b042692c5a5.tar.gz |
wesnoth 1.8 for archlinux
mainly for the purpose of viewing replay files
Diffstat (limited to 'wesnothd-1.8.service')
-rw-r--r-- | wesnothd-1.8.service | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/wesnothd-1.8.service b/wesnothd-1.8.service new file mode 100644 index 000000000000..d037278eaa31 --- /dev/null +++ b/wesnothd-1.8.service @@ -0,0 +1,35 @@ +[Unit] +Description=Wesnoth-1.8 Server Daemon +Documentation=https://www.wesnoth.org/wiki/ServerAdministration +Documentation=man:/usr/share/man/wesnoth-1.8/man6/wesnothd.6.gz +After=network.target +# They use by default the same port +Conflicts=wesnothd.service wesnothd-1.10.service wesnothd-1.12.service wesnothd-1.14.service wesnothd-devel.service wesnothd-git.service + +[Service] +ExecStart=/usr/bin/wesnothd-1.8 -t 2 -T 5 +# you can use -c to specify the same configuration file +# which is used when starting wensothd from the wesnoth UI +# (and make sure wesnothd has the required access permissions) + +SyslogIdentifier=Wesnothd-1.8 +User=nobody +Group=nobody +ExecStopPost=/usr/bin/rm -f /run/wesnothd-1.8/socket + +# Additional security-related features +ProtectSystem=yes +PrivateTmp=yes +PrivateDevices=yes +NoNewPrivileges=yes +RestrictAddressFamilies=AF_INET +RestrictRealtime=yes +MemoryDenyWriteExecute=yes +SystemCallArchitectures=native +ProtectControlGroups=yes +ProtectKernelTunables=yes +ProtectKernelModules=yes +RestrictNamespaces=yes + +[Install] +WantedBy=multi-user.target |