/srv/irclogs.ubuntu.com/2009/11/14/#upstart.txt

=== robbiew is now known as robbiew_
frog-odose upstart have anything to do with module loading 19:04
wasabi__Question: I have a job that needs to stop by running a command and waiting for the process to exit, but never sending TERM to the process.21:59
wasabi__I think expect stop is the closest, except I'm not using SIGSTOP22:00
wasabi__Oops22:01
ionAdd a pre-stop script that runs the command and waits for the process to exit.22:01
wasabi__Ahh. I can wait. Duh.22:02
wasabi__Cool. So. Here's a harder one. I have a set of services which I need to attempt to shutdown, but if they fail to shutdown, I need the system back up. Can we do this yet? :022:19
wasabi__(VirtualBox VMs)22:19
wasabi__(they could fail to respond to acpipoweroff22:19
Keybukwasabi__: yes, in the pre-stop22:43
Keybuk  if failed_to_shutdown22:43
Keybuk  then22:43
wasabi__cool22:43
Keybuk    start22:44
Keybuk  fi22:44
Keybuk;)22:44
wasabi__does env support "" around values?22:47
Keybukyes22:48
wasabi__Hmm. Getting close.22:53
wasabi__Got the job to start... but there's probably some unknown of fork22:53
wasabi__And if 'start' is invoked, and the job actually does succeed to shutting down later, does it come back? I suppose respawn effects that?23:00
wasabi__vm-station-1 main process (28695) killed by TERM signal23:03
wasabi__grrrr23:03
wasabi__oh i see23:03
wasabi__pre-stop failed23:03
wasabi__if pre-stop fails, shoudl stop continue?23:03
Keybukno23:05
Keybukpre-stop fails doesn't affect anything23:05
wasabi__hmmm.23:16
wasabi__main process terminated with status 5.  weird. it's just exec sudo, followed by a command that does not fork.23:16
wasabi__running it as root works.23:16
wasabi__Keybuk, when you getting into Dallas?23:17
wasabi__oh i know. sudo isn't staing alive.23:17
wasabi__hmmm23:22
wasabi__Variables are expanded on exec stanza's, I assume23:28
wasabi__Hmm. So sudo is forking the task off, but it's getting the console, so you can't tell23:31
wasabi__Hmm. Nope.23:35
wasabi__sudo is execing23:36
wasabi__could i have broken upstart? I have a job that just blocks on 'start'23:37
wasabi__ISI\jhaltom@station-1:/etc/init$ sudo status vm-station-223:47
wasabi__vm-station-2 stop/killed, process 940123:47
wasabi__no 9401 exists23:47
Keybukwasabi__: sunday evening23:54
wasabi__so tomorrow23:55
ionhttp://heh.fi/tmp/workaround-upstart-snafu23:55
ion./workaround-upstart-snafu 940123:55
ion:-P23:55
wasabi__so it's a known issue?23:55
ionUpstart doesn’t really handle forking children very well at the moment. Your job is doing something else than what Upstart expects. The 0.10 release will fix that.23:57
Keybuktoday, I mostly hate compiz23:58

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