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?

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to