Stopping a specific instance via a KEY=VALUE?
Scott James Remnant
scott at netsplit.com
Wed May 19 11:32:07 BST 2010
On Tue, 2010-05-18 at 14:20 -0700, Robert J Berger wrote:
> start on (start_foo A=*)
This means "start this job whenever start_foo is emitted with any value
> stop on (stop_foo A=*)
This means "stop this job whenever stop_foo is emitted with ANY VALUE of
So this is behaving correctly, emitting any stop_foo A=... will stop
First up, let's correct the job:
start on start_foo A=*
stop on stop_foo A=$A
ie. we now only stop the job whenever stop_foo is emitted with the SAME
VALUE of $A as when it was started.
Now your example will work.
However you don't need to use events like this; you can just use the
"start" and "stop" commands directly.
start foo A=...
stop foo A=...
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
Size: 198 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20100519/ba480925/attachment.pgp
More information about the upstart-devel