X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=examples%2Fpublic-inbox-httpd%40.service;h=147f7c6dd9d709a5353dac4cb469086ebc35caad;hp=e811da40497a402e88f1b58a614a8519e7980434;hb=HEAD;hpb=0ea8f5dacfb6d6bfba4dd4be86416bdd2dc5907d diff --git a/examples/public-inbox-httpd@.service b/examples/public-inbox-httpd@.service index e811da40..73731533 100644 --- a/examples/public-inbox-httpd@.service +++ b/examples/public-inbox-httpd@.service @@ -1,9 +1,14 @@ # ==> /etc/systemd/system/public-inbox-httpd@.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-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 @@ -13,6 +18,7 @@ After = public-inbox-httpd.socket [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