From: Alexander Barton Date: Fri, 14 Aug 2015 17:55:32 +0000 (+0200) Subject: Update systemd service file X-Git-Tag: rel-23-rc1~9 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=2a52befa56eec493d4179c1568c7e6cd26d9ae23 Update systemd service file --- diff --git a/contrib/ngircd.service b/contrib/ngircd.service index b71eef2b..f24ef60c 100644 --- a/contrib/ngircd.service +++ b/contrib/ngircd.service @@ -4,8 +4,19 @@ After=network.target [Service] Type=forking +User=irc +Group=irc +CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_CHROOT CAP_NET_BIND_SERVICE +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +ProtectHome=true +NoNewPrivileges=true +RuntimeDirectory=ircd +RuntimeDirectoryMode=750 ExecStart=/usr/sbin/ngircd ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure [Install] WantedBy=multi-user.target