# (e.g. public-inbox-httpd@1 public-inbox-httpd@2) with the intention
# that they take turns running in-between upgrades. This should
# allow upgrading without downtime.
+# For servers expecting visitors from multiple timezones, TZ=UTC
+# is needed to ensure a consistent approxidate experience with search.
[Unit]
Description = public-inbox PSGI server %i
[Service]
Environment = PI_CONFIG=/home/pi/.public-inbox/config \
PATH=/usr/local/bin:/usr/bin:/bin \
+TZ=UTC \
PERL_INLINE_DIRECTORY=/tmp/.pub-inline
LimitNOFILE = 30000
ExecStart = /usr/local/bin/public-inbox-httpd \
-1 /var/log/public-inbox/httpd.out.log
StandardError = syslog
+
+# NonBlocking is REQUIRED to avoid a race condition if running
+# simultaneous services
+NonBlocking = true
Sockets = public-inbox-httpd.socket
+
KillSignal = SIGQUIT
User = nobody
Group = nogroup