Multiple "start on" stanzas, dependencies

Scott James Remnant scott at netsplit.com
Thu Dec 9 21:18:53 GMT 2010


Use "and" & "or"

  start on started foo or started bar

Scott

On Thu, Dec 9, 2010 at 9:17 PM, Yang Zhang <yanghatespam at gmail.com> wrote:

> Hi, the Getting Started documentation says:
>
> "You list the events you want to start your job with start on, and the
> events that stop your job with stop on."
>
> This makes it sound like you just specify "start on" multiple times,
> once per event that you want to trigger starting this job.
>
> However, experimenting with upstart on Ubuntu 10.04 (upstart 0.6.5?),
> it seems to only respect the last "start on" stanza. E.g., if I have:
>
> start on started foo
> start on runlevel [2345]
>
> Then after reload-configuration and start foo, the above job doesn't start.
>
> How do I make a job start on any of multiple events?
> --
> Yang Zhang
> http://yz.mit.edu/
>
> --
> upstart-devel mailing list
> upstart-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/upstart-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/upstart-devel/attachments/20101209/52424f2a/attachment.htm 


More information about the upstart-devel mailing list