pipe-tools
Software
www.skarnet.org
The npt-svwaitstart program
npt-svwaitstart waits for the birth of a set of npt-supervise
processes. It works only with npt-supervise.
Interface
npt-svwaitstart timeout servicedir [ servicedir ... ]
- npt-svwaitstart blocks until there is a npt-supervise
process running on every servicedir. Then it exits 0.
- If a hard error occurs, npt-svwaitstart exits 111.
- If timeout seconds elapse and npt-svwaitstart is still
waiting, it exits 99. A 0 value for timeout means infinite.
Related work
If you are interested in guarantees on process state, you should also
have a look at:
- runit,
by Gerrit Pape.
- svclean, by
Paul Jarc.
It looks like everyone of us has his own implementation of the same
concept. Choose the one that suits you best. :-)
- and of course the root of it all:
daemontools,
by Dan J. Bernstein.