/srv/irclogs.ubuntu.com/2011/11/22/#upstart.txt

ZBanditSince upstart apparently is now default in CentOS 6 (RHEL6) how does one make the autologin with only on one TTY?05:04
ZBanditNever mind, figured it out on me own.05:58
lucsI'm trying to get something working with upstart and I currently have a situation where "initctl status foo" responds with "foo stop/killed, process 3574"13:35
lucsYet, there is no process 3574, and I seem to be stuck there.13:35
lucs(I think the situation was caused by a mistaken "expect" stanza.)13:37
jhuntlucs: more than likely. Take a read of the newly updated section in the cookbook - http://upstart.ubuntu.com/cookbook/#expect.13:38
jhuntlucs: also note the golden rule - don't use "respawn" until you are sure you have correctly specified "expect".13:38
lucsjhunt: Yes, thanks, I'm there already (re. the cookbook).13:39
lucsRight now, I'm wondering how I can get back to a "clean" state.13:39
jhuntlucs: if initctl / status is hanging, control-C it. If it's not actually hanging, but is reporting incorrect information, I'm afraid you'll have to reboot to get Upstart to clear its knowledge of that job. What you *can* do if you're on a dev box is to copy the .conf file to a new name and "try again".13:40
jhuntlucs: we're going to be looking into this issue for this (Ubuntu) cycle. It's quite a hard problem to solve though unfortunately.13:41
lucsjhunt: Ah, I was kind of afraid I'd need to reboot, but there it is :)13:41
lucsYeah, it's a dev machine, so I can experiment all I want.13:42
jhuntlucs: well, unfortunately, Upstart is powerless in this scenario right now as if the expect stanza is mis-specified there is no reasonable error recovery it can perform.13:42
lucsOh, copying the .conf and retrying is a good idea, thanks.13:42
lucsjhunt: Ok, thanks for the info.13:43
jhuntlucs: np.13:43
lucs(Note to self: in "script" sections, don't declare environment variables with "env", unless you want to waste _a lot_ of time :-/ )15:11
jhuntlucs: ah! :) http://upstart.ubuntu.com/cookbook/#init-checkconf is your friend15:14
jhuntlucs: actually, that wouldn't have helped as of course 'env' *is* valid in shell, but not in the context you were using it in.15:15
lucsjhunt: By the way, all my problems went away when I got rid of the faulty 'env's.15:32
jhuntlucs: I'd be interested to see your .conf. Certainly sounds like a script process was aborting but Upstart was attempting to "follow forks" still.15:33
lucsjhunt: I have many failing variations, basically all with "script \n env FOO=some_command args... \n exec $FOO \n end script".15:35
lucs(sorry, was talking to a cow-orker).15:52
lucsSo FOO was empty, and a plain 'exec' was being done (I suppose).15:53
lucsTime for a reboot.16:02
lucsjhunt: Thanks again.16:02
jhuntlucs: thanks for the info. I'll ponder this for future cookbook updates.16:03
lucsupstart++16:09
lucsjhunt: Nice cookbook too.16:09
jhuntlucs: still lots to add when time allows :)16:10
lucs:)16:10

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