Package: runit Version: 2.0.0-1 Severity: normal Tags: patch Please see patch attached - it adds `reload' action support which acts exactly as `force-reload'.
`reload' is the only action which presents in invoke-rc.d script but not (yet) supported by sv binary. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash runit depends on no packages. Versions of packages runit recommends: pn fgetty <none> (no description available) Versions of packages runit suggests: pn runit-run <none> (no description available) ii socklog-run 2.1.0-8 system and kernel logging services -- no debconf information
#! /bin/sh /usr/share/dpatch/dpatch-run ## 0002-reload-action.diff by Artyom Pervukhin <art...@evasive.ru> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Add `reload` action support - acts exactly as `force-reload` ## DP: Needed for invoke-rc.d script compatibility @DPATCH@ diff -ur a/runit-2.0.0/src/sv.c b/runit-2.0.0/src/sv.c --- a/runit-2.0.0/src/sv.c 2008-06-16 02:53:26.000000000 +0600 +++ b/runit-2.0.0/src/sv.c 2009-10-09 09:52:05.451308000 +0600 @@ -315,6 +315,7 @@ act =&status; cbk =0; break; case 'r': if (!str_diff(action, "restart")) { acts ="tcu"; cbk =✓ break; } + if (!str_diff(action, "reload")) { acts ="tc"; kll =1; cbk =✓ break; } usage(); case 'f': if (!str_diff(action, "force-reload"))