]> Sergey Matveev's repositories - public-inbox.git/commit
doc: systemd examples should only kill one process
authorEric Wong <e@80x24.org>
Mon, 13 Jun 2016 22:56:27 +0000 (22:56 +0000)
committerEric Wong <e@80x24.org>
Mon, 13 Jun 2016 23:00:04 +0000 (23:00 +0000)
commit37bf2db81bbbe114d7fc5a00e30d3d5a6fa74de5
tree35b0f7b3f5e2affcf7da9c6147ed89776f710085
parent31afda256c813443062e0504213d41732e50ee45
doc: systemd examples should only kill one process

For our daemons, killing only the master process is enough.
Killing the entire control group (as done by default in
systemd) may cause subprocesses such as git to shut down
unexpectedly.

Having systemd kill workers directly will also cause an
immediate shutdown since the master would've already signaled
the workers; and workers will die after two shutdown requests.
examples/public-inbox-httpd@.service
examples/public-inbox-nntpd@.service
examples/unsubscribe-psgi@.service