From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 1/2] examples: minimize differences for systemd examples
Date: Fri, 8 Jul 2016 21:16:10 +0000 [thread overview]
Message-ID: <20160708211611.1623-2-e@80x24.org> (raw)
In-Reply-To: <20160708211611.1623-1-e@80x24.org>
Our nntpd and httpd are similar so configuration differences
should be minimized
---
examples/public-inbox-httpd.socket | 2 +-
examples/public-inbox-httpd@.service | 4 +++-
examples/public-inbox-nntpd@.service | 4 ++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/examples/public-inbox-httpd.socket b/examples/public-inbox-httpd.socket
index da37aec..1a1ed73 100644
--- a/examples/public-inbox-httpd.socket
+++ b/examples/public-inbox-httpd.socket
@@ -3,7 +3,7 @@
Description = public-inbox-httpd socket
[Socket]
-ListenStream = 127.0.0.1:280
+ListenStream = 80
Service = public-inbox-httpd@1.service
[Install]
diff --git a/examples/public-inbox-httpd@.service b/examples/public-inbox-httpd@.service
index 4efea2a..56117ef 100644
--- a/examples/public-inbox-httpd@.service
+++ b/examples/public-inbox-httpd@.service
@@ -17,7 +17,9 @@ PERL_INLINE_DIRECTORY=/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
diff --git a/examples/public-inbox-nntpd@.service b/examples/public-inbox-nntpd@.service
index bdd9734..62202c2 100644
--- a/examples/public-inbox-nntpd@.service
+++ b/examples/public-inbox-nntpd@.service
@@ -18,8 +18,8 @@ PERL_INLINE_DIRECTORY=/tmp/.pub-inline
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
--
EW
next prev parent reply other threads:[~2016-07-08 21:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-08 21:16 [PATCH 0/2] example updates Eric Wong
2016-07-08 21:16 ` Eric Wong [this message]
2016-07-08 21:16 ` [PATCH 2/2] examples: add logrotate sample to show USR1 reopening Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160708211611.1623-2-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).