On Fri, Feb 25, 2011 at 03:08:51PM +0100, lst_ho...@kwsoft.de wrote: [...] > >Is there any reason they can't do this: > > > > Postfix "job" script: > > > > pre-start exec postfix start > > post-stop exec postfix stop > > > >With this, the system will do the work for them, and everything > >uses stable documented interfaces. > > > I'm just on the way learning the new concepts of upstart... > As far as i understand the common way is to not detach as it is done > in the common way but run in foreground to keep contact with upstart > (init) so status can be easily collected. It should be possible to > fire only a startup script and terminate but with this the daemon > listing (initctl list) would show status "waiting" instead of > "running".
I'm just thinking how Solaris 10's SMF can solve this. As far as I noticed, it somehow keeps track on children too, so if the "start method" only does something then exits, it still knows that the service is running since there is child(ren) process(es) of the start method in the system. I am not sure however, but as far as I remember/experienced. Upstart may does not have this feature however ... -- Gábor