Our nntpd and httpd are similar so configuration differences
should be minimized
Description = public-inbox-httpd socket
[Socket]
Description = public-inbox-httpd socket
[Socket]
-ListenStream = 127.0.0.1:280
Service = public-inbox-httpd@1.service
[Install]
Service = public-inbox-httpd@1.service
[Install]
LimitNOFILE = 30000
ExecStartPre = /bin/mkdir -p -m 1777 /tmp/.pub-inline
LimitNOFILE = 30000
ExecStartPre = /bin/mkdir -p -m 1777 /tmp/.pub-inline
-ExecStart = /usr/local/bin/public-inbox-httpd
+ExecStart = /usr/local/bin/public-inbox-httpd \
+-1 /var/log/public-inbox/httpd.out.log
+StandardError = syslog
Sockets = public-inbox-httpd.socket
KillSignal = SIGQUIT
User = nobody
Sockets = public-inbox-httpd.socket
KillSignal = SIGQUIT
User = nobody
LimitNOFILE = 30000
ExecStartPre = /bin/mkdir -p -m 1777 /tmp/.pub-inline
ExecStart = /usr/local/bin/public-inbox-nntpd \
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
+-1 /var/log/public-inbox/nntpd.out.log
+StandardError = syslog
Sockets = public-inbox-nntpd.socket
KillSignal = SIGQUIT
User = nobody
Sockets = public-inbox-nntpd.socket
KillSignal = SIGQUIT
User = nobody