Need clarification on possible bug with start on / stop on stanza logic

Scott James Remnant scott at netsplit.com
Fri Feb 13 18:46:35 GMT 2009


On Fri, 2009-02-13 at 10:30 -0800, Garrett Cooper wrote:

> On Fri, Feb 13, 2009 at 10:23 AM, Scott James Remnant
> <scott at netsplit.com> wrote:
> > On Thu, 2009-02-12 at 16:23 -0800, Garrett Cooper wrote:
> >
> >>     I found this gem while producing tests for upstart, and I'm
> >> wondering whether or not this is a bug that should be filed:
> >>
> >> [comet-k5-12:/etc/init/jobs.d]$ cat foo+
> >> stop on halloween / duwali
> >> [comet-k5-12:/etc/init/jobs.d]$ start foo+
> >> [comet-k5-12:/etc/init/jobs.d]$ start foo+
> >> start: Unable to start job: Job is already running: foo+
> >>
> > Could you point out which bit you think is the bug?
> >
> > Scott
> 
>     I question the fact that the parser completely ignores a malformed
> statement `halloween / duwali' after `stop on', because certain
> characters (like `/') can't be used to qualify upstart's simple
> English boolean statements :).
> 
It's not malformed.

You're matching the "halloween" event with the arguments "/" and
"duwali"

Consider:

	start on path-mounted /

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: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20090213/e57279ef/attachment.pgp 


More information about the upstart-devel mailing list