X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=examples%2Fpublic-inbox-nntpd%40.service;h=4dd2f5d7a8862d0abc6809527bef80825d50bf32;hb=HEAD;hp=3e203e0bfbce0e3a7c7bbe5db9bd865a225e5264;hpb=37bf2db81bbbe114d7fc5a00e30d3d5a6fa74de5;p=public-inbox.git diff --git a/examples/public-inbox-nntpd@.service b/examples/public-inbox-nntpd@.service index 3e203e0b..56e1cc8f 100644 --- a/examples/public-inbox-nntpd@.service +++ b/examples/public-inbox-nntpd@.service @@ -1,4 +1,7 @@ # ==> /etc/systemd/system/public-inbox-nntpd@.service <== +# Consider looking at public-inbox-netd@.service instead of this file +# to simplify management when serving multiple protocols. +# # Since SIGUSR2 upgrades do not work under systemd, this service file # allows starting two simultaneous services during upgrade time # (e.g. public-inbox-nntpd@1 public-inbox-nntpd@2) with the intention @@ -19,13 +22,21 @@ LimitNOFILE = 30000 ExecStartPre = /bin/mkdir -p -m 1777 /tmp/.pub-inline ExecStart = /usr/local/bin/public-inbox-nntpd \ -1 /var/log/public-inbox/nntpd.out.log \ --2 /var/log/public-inbox/nntpd.err.log +--cert /etc/ssl/certs/news.example.com.pem \ +--key /etc/ssl/private/news.example.com.key +StandardError = syslog + +# NonBlocking is REQUIRED to avoid a race condition if running +# simultaneous services +NonBlocking = true + Sockets = public-inbox-nntpd.socket + KillSignal = SIGQUIT User = nobody -Group = nogroup +Group = ssl-cert ExecReload = /bin/kill -HUP $MAINPID -TimeoutStopSec = 3600 +TimeoutStopSec = 86400 KillMode = process [Install]