/srv/irclogs.ubuntu.com/2012/08/07/#upstart.txt

mikedlrhi;  I have an init script run from upstart;  I'07:28
mikedlrI am trying to get it to kill a service, but it doesn't get run.07:28
mikedlrThis is on RHEL6;  The script is installed as /etc/rc4.d/K***.  Can anyone suggest why it is ignored?07:29
mikedlrwhen I switch into runlevel 3 where it is linked as /etc/rc3.d/S*** then it gets run.07:30
jodhmikedlr: does it get run as /etc/rc3.d/K***? Does anything else run in runlevel 4?07:39
pw12hi, I was wandering: what's the state of the cron event support for upstart?07:41
mikedlrjodh;  I have it running as S99xx in runlevel 3.  Then it runs07:42
jodhpw12: scott has a branch, but it hasn't been looked at for a while due to other priorities. Patches always welcome of course! ;)07:42
mikedlrservice xxx status shows running.07:42
jodhmikedlr: ok, but can you answer my 2 questions?07:46
mikedlrjodh;  it seems quite a few kill scripts run as I switch into runlevel 4.  07:47
mikedlrjodh; the other software that was already running but doesn't have a kill script seems to stay there. 07:48
jodhmikedlr: it doesn't sound like an Upstart issue then. Are you sure it isn't running? Try adding some log calls to the script to be sure.07:48
mikedlrI put an echo at the start of the script.  07:49
mikedlrecho eucalyptus-cloud run as $0 with arguments "$@" >> /tmp/cloudrcrun.log07:50
mikedlrI see "eucalyptus-cloud run as /etc/init.d/eucalyptus-cloud with arguments status" often (even when I don't run it)07:51
mikedlrI see "eucalyptus-cloud run as /etc/rc3.d/S99eucalyptus-cloud with arguments start"07:51
mikedlrwhen I switch to runlevel 307:51
mikedlrI see nothing when I switch to runlevel 4.  07:51
mikedlryes; jodh; I can confirm that I see "snmpd", for example, working in both directions but I only see eucalyptus in the one direction. 07:54
mikedlrmy expected behavior from upstart is that it runs everything in /etc/rc4.d/K[0-9][0-9]*  in order;  is there some config file which I could expect to change this?  This should be a more or less stock RHEL6 install.08:00
jodhmikedlr: Upstart doesn't run those scripts: it starts the SysV system which handles that. Is there a lock file somewhere maybe? (/var/lock/*?)08:03
mikedlrjodh;  there is no lockfile whether I am in level 3 or level 4.  I think that that is probably the cause of the problem.08:10
jodhmikedlr: ok. I do wonder why it is necessary to create a new service to kill an existing one though. Is a problem with the stop command for the SysV service in question?08:12
mikedlrjodh;  it's not a new service;  it's the existing script which is not apparently working.. 08:12
jodhmikedlr: it might be easier to fix that and report it to RedHat then?08:13
mikedlrjodh - s/redhat/eucalyptus/ - it's already reported :-) thanks.08:24
slangasekjodh: ok... bug-980917-the-bug-that-would-not-die, landed :)16:40
slangasekjodh: I think that's ready to be pulled into quantal, then16:46
SpamapS\o/17:01
jodhslangasek: thanks!17:30
Almindorhello20:39
Almindorhow do you define environment variables for a specific user from upstart script? I need to run something as sudo -u some_user but I want some environment vars set on it20:41
gchristensenhi, where can I find stanza docs for 0.6.5?21:19
SpamapSgchristensen: man 5 init22:32
SpamapSgchristensen: http://manpages.ubuntu.com/manpages/lucid/en/man5/init.5.html22:33

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