On Sun, Oct 01, 2006 at 02:48:36PM +0200, [EMAIL PROTECTED] wrote:
> 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).

Hi Judicael,

please see the runsv(8) man page, chapter CUSTOMIZE CONTROL.  Does
creating a control/t script do what you want?

Regards, Gerrit.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to