Christian Roessner:
> Hi,
> 
> > > >     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.
> 
> sorry Wietse, if it really would have been so easy, I never had contaced
> the list for such trivial solutions ;-)
> 
> In fact your code snipped would start, that is true, but upstart would
> catch a wrong pid and you could never stop postfix with upstart again.

Sorry, with the above, there is no PID, since all the work is done
in the pre-start and pre-start actions.

This approach is valid. It is used for example to turn on/off networking,
where there is no single PID.

> But we really can close this thread, as I already have shown a script
> that does the job.

I disagree. We need a solution that is based on proper understanding
of how upstart works, and I will provide one that has no kludges.

        Wietse

Reply via email to