starting a task without events

Jan Claeys lists at janc.be
Wed Feb 3 01:11:26 GMT 2010


Op maandag 01-02-2010 om 09:37 uur [tijdzone +0200], schreef Janne
Karhunen:
> Do you guys know if there is some random trickery available
> to start task X without raising events (namely, started is the
> one I'm interested in) from it?
> 
> Specifically, say test2 fires of 'started test1'. Is there a way to
> start 'test1' without firing 'test2' other than to have an instance
> of test2 already running?
> 
> Reason I'm asking is that 'started' is a nice way to implement
> ordered startup sequence and usually that does not mean
> dependency. For debugging, it would be quite nice to support
> case where 'task1' could be fired off standalone. 

Two ways I can think of:
     1. make 2 scripts for task1, so that task1standalone doesn't fire a
        "started task1" event,
     2. make task2 check some external variable (e.g. could be a setting
        in a file inside /etc/default/ on Ubuntu) as an additional
        launch condition.


-- 
Jan Claeys




More information about the upstart-devel mailing list