problem with start on started / stop on stopped

Scott James Remnant scott at netsplit.com
Thu Mar 11 20:16:37 GMT 2010


On Thu, 2010-03-11 at 14:06 -0500, Marcel Kinard wrote:

> > This should work exactly as you've written it. 
> 
> I believe I figured out my problem. A line in the watchdog conf file
> had 
> accidently become uncommented, and thus I had 2 "stop on" stanzas. 
> Looks like the last one wins. :-) 
> 
This is one of Casey's pet peeves ;-)

> I'm getting the behavior that I want. When I do an "initctl restart
> application" 
> it stops the watchdog, stops the application, starts the application,
> starts 
> the watchdog. To get this behavior, I need to do an "initctl
> restart ..." 
> instead of "initctl emit ...", which isn't a big deal. 
> 
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

will work with that

Scott

-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20100311/196ec778/attachment.pgp 


More information about the upstart-devel mailing list