Package: runit
Version: 1.6.0-1
Severity: wishlist

Dear Gerrit,

Thanks a lot for writing runit and packaging it for debian. Here is an
issue I found while trying to migrate services to runit: some services
such as dbus-1 need to do some cleanup *before* the daemon exits,
which cannot be done with the current version of runit. Unfortunately,
there is currently no way to cleanup before the daemon is killed. I
would advocate for the little following change to runsv: when a
service is requested to stop, instead of killing the daemon then
running the finish script, it would instead run a user-provided
script named 'stop' with the pid of the daemon as an argument, then
run the finish script. If no 'stop' script exists, runsv would then
act as currently, or would run a standard 'stop' script (which would
let you remove the code killing the daemon from runsv itself).

Sincerly yours,

Judicael Courant.

PS: By the way, I also use runit to manage some one-shot init scripts
such as /etc/init.d/binfmt-support, instead of having to run them one
after the other in /etc/runit/1. In order to do this, I just write a
run script running the one-shot script then executing the following
program sleeping forever until signaled:

/* sleepingbeauty.c: sleeps until a charming prince signals her up.
   Freely adapted from Charles Perrault's fairy tale "La Belle au bois
   dormant" (1697).
 */
#include <unistd.h>

int main() {
  /* Elle s'en perça la main, et tomba 'evanouie */
  pause();

  /* ''Est-ce vous, mon Prince? Vous vous ^etes bien fait attendre.'' */
  return 0; 
}

/*
  Public Domain (author J. Courant, 2006/9/5).
*/

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)

runit depends on no packages.

Versions of packages runit recommends:
ii  fgetty                        0.6-3      very small, efficient, console-onl

-- no debconf information


Reply via email to