/srv/irclogs.ubuntu.com/2010/06/14/#upstart.txt

Kamil_can someone point me to some example upstart scripts? for example, something controlling apache or named would be interesting04:42
ionSee /etc/init04:43
Kamil_is there a way i can see them without having to isntall the packages on my machine?04:44
ionDo you not have Upstart running on your system?04:45
Kamil_i have upstart on the system04:45
Kamil_i dont have anything controlling apache or bind04:45
ionThere should be various jobs in /etc/init.04:45
Kamil_i created a script to execute a special build of named. it starts fine, but when i query its status, upstart doesnt seem to know about it04:47
Kamil_$ sudo start bind04:48
Kamil_bind start/running, process 201804:48
Kamil_$ sudo status bind04:48
Kamil_bind stop/waiting04:48
Kamil_but it's definitely running04:48
ionIt probably daemonizes. It’s easiest just to tell it not to daemonize. Upstart 0.6 has preliminary functionality for tracking forks, but it’s very easy to confuse that functionality. If you want to experiment with it, see the ‘expect’ stanza. Upstart 0.10 will handle that well.04:49
Kamil_thanks i will take a look at that04:50
ionThat is, if you know exactly how the main process forks, feel free to use the expect stanza. If you’re uncertain, simply tell the daemon not to fork.04:51
Kamil_understood04:52
Kamil_another question, if there is a special stop command, is the correct place for that within a pre-stop script?04:53
ionYes04:53
Kamil_thanks04:53
OmahnIs it possible to receive a log message from upstart of the exact command run from an 'exec' after all the variables have been populated?09:26
OmahnWill removing an upstart job from /etc/init automatically 'stop' the job (when removing a package) or should the package explicitly stop the job before removing the file?10:29

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