user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/2] examples/logrotate: only SIGUSR1 main process
  2023-10-28 18:01  6% [PATCH 0/2] examples updates Eric Wong
@ 2023-10-28 18:01  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-10-28 18:01 UTC (permalink / raw)
  To: meta

There's no need to send SIGUSR1 to auxiliary processes since
they don't know what to do with them.
---
 examples/logrotate.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/logrotate.conf b/examples/logrotate.conf
index 4ce08843..fad40cfc 100644
--- a/examples/logrotate.conf
+++ b/examples/logrotate.conf
@@ -18,7 +18,7 @@
 		# systemd users do not need PID files,
 		# only signal the @1 process since the @2 is short-lived
 		# For systemd users, assuming you use two services
-		systemctl kill -s SIGUSR1 public-inbox-httpd@1.service
-		systemctl kill -s SIGUSR1 public-inbox-nntpd@1.service
+		systemctl kill -s SIGUSR1 --kill-who=main \
+				public-inbox-netd@1.service
 	endscript
 }

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/2] examples updates
@ 2023-10-28 18:01  6% Eric Wong
  2023-10-28 18:01  7% ` [PATCH 2/2] examples/logrotate: only SIGUSR1 main process Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-10-28 18:01 UTC (permalink / raw)
  To: meta

I really don't check my own syslogs enough :x

Eric Wong (2):
  examples/*.service: avoid `nobody' user on systemd
  examples/logrotate: only SIGUSR1 main process

 examples/logrotate.conf              | 4 ++--
 examples/public-inbox-httpd@.service | 4 ++--
 examples/public-inbox-imapd@.service | 2 +-
 examples/public-inbox-nntpd@.service | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-10-28 18:01  6% [PATCH 0/2] examples updates Eric Wong
2023-10-28 18:01  7% ` [PATCH 2/2] examples/logrotate: only SIGUSR1 main process Eric Wong

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).