eivanov | Hi! Specs on wiki looks "mixed" with implemented and to be implemented things. Am I right? Then any other documentation? | 15:12 |
---|---|---|
ion | The man pages | 15:37 |
eivanov | Well I was looking for something like Remnant's blog posts. | 15:45 |
JanC | which blog posts? | 16:45 |
JanC | for the current version, the manpages should document the "implemented things" | 16:46 |
eivanov | JanC: e.g. http://www.netsplit.com/2006/12/14/upstart-0-3/ | 17:22 |
eivanov | It's good to read about upstart in common. | 17:22 |
eivanov | But you're right, I missed man pages and they're really good. | 17:23 |
phil | hiho | 17:27 |
JanC | eivanov: Upstart 0.3 is very old | 17:28 |
phil | I am currently trying to add a custom script to execute when switching to runlevel 0 | 17:28 |
eivanov | JanC: yeah, but I have to work with it, at least now. | 17:28 |
JanC | eivanov: :-( | 17:28 |
phil | i can't seem to find an /etc/event.d , but rc?.d/ misses services, so i think i do have upstart installed, but where the heck? ubuntu 10.04 LTS | 17:29 |
JanC | phil: upstart uses /etc/init/ now | 17:29 |
JanC | as is documented in the manpage... | 17:31 |
phil | sorry, i see now | 17:32 |
phil | i'm familiar with the old style but didn't dig into linux that much since | 17:32 |
JanC | if you need to change/add services, see 'man 5 init' for the new syntax | 17:33 |
phil | is there something like pre-stop? | 17:36 |
ion | Yes, pre-stop. | 17:36 |
phil | nice | 17:36 |
phil | is a change to a script in effect instantly? | 17:45 |
eivanov | 0.3.5 man pages are really poor :( | 18:22 |
phil | how can i make sure a script is executed very early in the shutdown process? | 19:19 |
ion | Why? | 19:24 |
phil | i asked first :P | 19:25 |
phil | i want to execute a custom script before a service shuts down | 19:26 |
phil | added it to the service in pre-stop but that does not seem to do the trick, probably because dependencies are not met any more | 19:26 |
phil | so if i could just do it first in a shutdown sequence it is solved | 19:27 |
phil | now you :P | 19:27 |
ion | pre-stop should be the right thing. What do you mean by dependencies not being met? | 19:28 |
phil | it's a python script, uses mysql db i.e. | 19:28 |
phil | so if mysql is shut down you know what happens | 19:29 |
ion | The job should have “stop on stopping mysql“ or however the mysql job is named. | 19:29 |
phil | thanks | 19:34 |
ion | “stop on foo” causes the stopping of your job to block the foo event. | 19:36 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!