[08:34] hey... i am trying to make an upstart script for rabbitmq but it blocks it starts the service and when i stop it the service is stopped but the stop process hangs and if killed it and try to start it again the start hangs [08:36] c9er: sounds like Upstart is unable to find the pid of the rabbitmq process. Have you specified "expect fork" or "expect daemon"? http://upstart.ubuntu.com/cookbook/#expect [08:37] yes i did [08:37] which one? maybe you specified the wrong option (they are different) [08:37] expect fork [08:38] I don't know rabbitmq, but if it forks twice, that won't work. [08:38] what if it forks more than twice? [08:39] it wouldn't need to. 2 forks is the maximum number of forks any daemon needs to perform to initialize. [08:39] will then i guess i will try the expect daemon [08:39] it might subsequently fork off process of course to handle incoming requests, but we're talking solely about daemon initialisation this point. [08:40] That *should* work, but if it doesn't, you can cheat: http://upstart.ubuntu.com/cookbook/#alternative-method [08:40] another question is there anyway to make the upstart reread the files without rebooting [08:41] because you know i define an instance then i remove it then i stop ther service but the upstart insists that i have to define that instance [08:41] there is a caveat though - although that will ensure the process starts, upstart still won't know the pid, so won't be able to stop it gracefully. [08:42] you want upstart to re-read its .conf files? [08:42] removing a .conf file when an instance is running, is going to cause you problems :) [08:43] upstart re-reads its .conf files automatically whenever any of them changes. [08:43] no they don't [08:43] ? [08:43] and i mean by instance the instance variable inside the file [08:44] it keeps telling me that variable need a value [08:44] while i have already removed it's line from he file [08:45] If you have a running job that needs an instance variable, yes, you'll need to specify the value of that instance variable to stop that running instance. [08:45] See http://upstart.ubuntu.com/cookbook/#instance [08:45] Also see: http://upstart.ubuntu.com/cookbook/#attempting-to-stop-a-job-that-requires-an-instance-variable [08:45] i don't mean so [08:46] i have already removed the line of the variable after stopping the service [08:46] the next time i need to start it it asked for the value [08:46] c9er: sounds like you might have another instance of that job still running? [08:47] nope i check the ps output each time [08:47] i think i may report it as a bug [08:49] please do, ensuring you specify exactly how to reproduce the problem. [08:49] Going back to what you say above: "i define an instance then i remove it then i stop ther service" [08:49] this is wrong - you have to start the instance, stop then instance *then* remove the variable from the file. [08:54] that's exactly what i have done [08:54] :) [11:39] i have wrote upstart script on ubuntu 10.10 version 6.6 it'w working perfectly but when i use the same script on upstart 9.7.3 on ubuntu 11.04 it freezes [11:42] any help?! [11:57] c9er: please raise a bug with the details: https://bugs.launchpad.net/ubuntu/+source/upstart/+filebug [16:42] any idea why would the upstart script hang when i use stop? [17:02] kay does upstart have any kind of a data base locking file or caching thing? [17:30] c9er: AFAIK upstart keeps all its "state" data in RAM, and the only thing resembling a database is the collection of *.conf files? [17:35] JanC, is there anyway to access these data in RAM? [17:37] not really [17:39] you can get some of it using some 'initctl' commands like "list" [17:41] well do you know why would stop hangs? [17:41] and of course you can turn up log verbosity & check the log messages [17:41] JanC, how is that? [17:41] c9er: not without context [17:42] c9er: read "man initctl" for the command to change log verbosity [17:42] k [17:42] it's named 'log-priority' [17:43] you can also set it on the kernel commandline in Ubuntu (see the cookbook) [17:44] JanC, so any idea why would the script hang on stop? [17:44] c9er: script? [17:45] c9er: did you read http://upstart.ubuntu.com/cookbook/#debugging ? [17:46] yea i did [21:50] <[dlp]> Enhancement request: [21:50] <[dlp]> At boot time, with "noisy" output (and no splash screen). [21:50] <[dlp]> .. [21:51] <[dlp]> Information about what process is being started left justified... [21:51] <[dlp]> Indication of success: right justified. [21:51] <[dlp]> Most monitors are wide enough to make it impossible to correlate one to the other. [21:52] <[dlp]> Either print them together and be jaggedy or pad it with dots. [22:03] <[dlp]> If anyone agrees and is prepared to point me inthe direction of exactly the right source file I'll do it myself.