Package: runit
Version: 2.1.1-6.2
Severity: minor
Tags: patch

Hi,

Since runit 0.7.2, if I understand correctly then "sv exit" does not
send SIGTERM to the log service but just closes the latter's standard
input.  You can see an example of the difference with the current
version (1:1.7.5.1-1) of the git-daemon-run package (bug#627314):

        # sv stat /etc/sv/git-daemon/log
        run: /etc/sv/git-daemon/log: (pid 3462) 23s
        $ nc localhost git;     # opening a connection in another terminal
        # sv exit /etc/sv/git-daemon/log
        # sv stat /etc/sv/git-daemon/log
        run: /etc/sv/git-daemon/log: (pid 3462) 96s, want down
        # sv down /etc/sv/git-daemon/log
        # sv stat /etc/sv/git-daemon/log
        fail: /etc/sv/git-daemon/log: runsv not running

Anyway, how about this patch?  Text taken from runsv.8.
---
 runit-2.1.1/man/sv.8 |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/runit-2.1.1/man/sv.8 b/runit-2.1.1/man/sv.8
index 9bc005a..7b09602 100644
--- a/runit-2.1.1/man/sv.8
+++ b/runit-2.1.1/man/sv.8
@@ -75,8 +75,9 @@ Do not restart the service.
 If the service is down, and no log service exists,
 .BR runsv (8)
 exits.
-If the service is down and a log service exists, send the TERM signal to the
-log service.
+If the service is down and a log service exists,
+.BR runsv (8)
+closes the standard input of the log service and waits for it to terminate.
 If the log service is down,
 .BR runsv (8)
 exits.
-- 
1.7.5.1




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to