problem with start on started / stop on stopped
Marcel Kinard
marcelk at us.ibm.com
Thu Mar 11 20:31:53 GMT 2010
> > and thus I had 2 "stop on" stanzas.
> > Looks like the last one wins. :-)
> >
> This is one of Casey's pet peeves ;-)
If I may make a suggestion, putting an error/warning message in syslog
when
it encounters an unexpected additional occurrence of a stanza would be
nice, even if it keeps on truckin'.
> You can do this like:
>
> start on startup or application-kickstart or application-restart
> stop on application-unhealthy or application-restart
>
> if an event is in BOTH start and stop, then it's an event that restarts
> it (Upstart processes stop first)
>
> initctl emit application-restart
Oooh, that's a neat trick! I may do just that.
Can you put that in the doc (ie, init.5)?
-- Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/upstart-devel/attachments/20100311/bf94784e/attachment.htm
More information about the upstart-devel
mailing list