Re: Emulate pipe-tools' finish script using daemontools?
Jos Backus <[email protected]> Fri, 30 Jun 2006 10:58:17 -0700
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 30, 2006 at 09:08:30AM +0000, Gerrit Pape wrote: > On Thu, Jun 29, 2006 at 09:40:12AM -0700, Jos Backus wrote: > > > That might be an excellent feature request for runit. :) > > Gerrit, what are your thoughts on this? > > Hi, we discussed this last year > http://thread.gmane.org/gmane.comp.sysutils.supervision.general/824 > > and planned to implement it, but this didn't happen yet. We didn't > really agree on what information should be passed to the ./run and > ./finish scripts, and how. That's an interesting thread. It certainly gives me a new understanding of the issues. Since I need a solution _now_ I'm going to go with Daryl's daemontools patch but will rename his `postrun' script to `finish' for compatibility reasons. When the new pipe-tools comes out I'll likely evaluate that, too. On the topic of `finish' script compatibility: if the three approaches cannot agree on a standard calling convention it would be useful for a finish script to be able to detect under which supervision tool it is being run. That eases migration between the various solutions. Thanks for your responses so far everybody. > Regards, Gerrit. -- Jos Backus jos at catnook.com