From: Eric Wong Date: Sat, 28 Oct 2023 18:01:12 +0000 (+0000) Subject: examples/*.service: avoid `nobody' user on systemd X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95856c34eaaa3c57829aea34f1afa42c23bc3124;p=thirdparty%2Fpublic-inbox.git examples/*.service: avoid `nobody' user on systemd systemd complains about `User=nobody' since `nobody' has access to all files which can't be mapped to a valid UID. We'll also switch to `Group=ssl-cert' since that ought to be able to read TLS certificates. --- diff --git a/examples/public-inbox-httpd@.service b/examples/public-inbox-httpd@.service index a56f6f81e..11859198e 100644 --- a/examples/public-inbox-httpd@.service +++ b/examples/public-inbox-httpd@.service @@ -32,8 +32,8 @@ NonBlocking = true Sockets = public-inbox-httpd.socket KillSignal = SIGQUIT -User = nobody -Group = nogroup +User = news +Group = ssl-cert ExecReload = /bin/kill -HUP $MAINPID TimeoutStopSec = 86400 KillMode = process diff --git a/examples/public-inbox-imapd@.service b/examples/public-inbox-imapd@.service index 8f5b79f29..801046056 100644 --- a/examples/public-inbox-imapd@.service +++ b/examples/public-inbox-imapd@.service @@ -32,7 +32,7 @@ NonBlocking = true Sockets = public-inbox-imapd.socket KillSignal = SIGQUIT -User = nobody +User = news Group = ssl-cert ExecReload = /bin/kill -HUP $MAINPID TimeoutStopSec = 86400 diff --git a/examples/public-inbox-nntpd@.service b/examples/public-inbox-nntpd@.service index 11bc223f9..24f9ca730 100644 --- a/examples/public-inbox-nntpd@.service +++ b/examples/public-inbox-nntpd@.service @@ -32,7 +32,7 @@ NonBlocking = true Sockets = public-inbox-nntpd.socket KillSignal = SIGQUIT -User = nobody +User = news Group = ssl-cert ExecReload = /bin/kill -HUP $MAINPID TimeoutStopSec = 86400