/srv/irclogs.ubuntu.com/2013/02/22/#upstart.txt

SpamapStartar: start on starting will block *every* starting event... BUT, only while it transitions from stop/waiting to start/running00:17
SpamapStartar: so, the second starting event will not block, because the goal will now be 'start'00:17
tartarhmm00:35
tartarIt would be nice if "start SERVICE" could give the status of the already starting or started job.01:25
tartarIt seems "start SERVICE" will say "already running" regardless of the status such as start/starting or start/running.01:26
tartarUsing "status SERVICE" before "start SERVICE" goes against possibility of an atomic check-vs-start.01:27
tartarAh, I should use the error code of "start SERVICE" and tell the difference between the starting and the running states by looking at "status SERVICE" on receiving a non-zero code.01:29
tartar 01:48
SpamapStartar: I'd also question the use case. If you want it started, start just asserts that the goal will at least have been set to start once.01:48
SpamapStartar: so its more of an assertion "make sure its at least in a state trying to start"01:49
tartarThanks.01:53
tartar 01:53
tartarOn an unrelated note, I love the rare occasions when pressing Ctrl-Alt-Delete brings up shell instead of rebooting a locked startup.01:53
tartarI am not sure if this came as under-developed intent or by chance.01:54
tartarErr. brings up the login prompt01:55
tartarI wonder where can I read... It appears that "task" will return its starting hooks on completion of its script.  Does pre-start of a service block the service's "start on" hook in the same way?03:15
tartarSpamapS: your comment about blocking starting events seems to imply yes.03:17
tartarYay, "6.32 task" confirms this.  "Without the 'task' keyword, the events that cause the job to start will be unblocked as soon as the job is started. This means the job has emitted a starting(7) event, run its pre-start, begun its script/exec, and post-start, and emitted its started(7) event."03:22
afournierdo a job that does an "start on starting job2" will run even if job2 fails to start ?10:54
afournieri'd say yes10:55
afournierbut the real question would then be, does job2 will run even if the job fails10:56
SpamapSafournier: a very easy thing to test. I believe the answer is yes16:52
afournieryes16:53

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!