NoobFukaire | if exec is called when an upstart job is initiated, where do you specify the shutdown procedures? | 16:41 |
---|---|---|
NoobFukaire | should use pre-stop ? | 16:42 |
NoobFukaire | its amazing that someone would write a utility like upstart, that manages starting and stopping services | 17:26 |
NoobFukaire | and totally screw up the stopping services part | 17:26 |
dumb_ass1 | hello | 20:52 |
dumb_ass1 | is dbus a strict requirement for upstart to work correctly? | 20:53 |
=== dumb_ass1 is now known as pippo | ||
mbiebl | pippo: libdbus is a hard requirement | 20:56 |
mbiebl | dbus is recommended for (user) communication | 20:56 |
pippo | what all is required instead to support the old system-v init scripts? | 21:10 |
pippo | how do i trigger an event on my own? | 22:01 |
ion | initctl emit | 22:02 |
pippo | how do i avoid some /etc/init/xyz.conf from emitting xyz ? | 22:03 |
pippo | s/avoid/prevent/ | 22:03 |
ion | By commenting out the line that emits it, for instance. | 22:04 |
pippo | mmm | 22:04 |
pippo | there's a line explicitly emitting it? | 22:05 |
ion | Perhaps. You didn’t define xyz and my crystal ball isn’t working right now. | 22:05 |
dumb_ass | i don't see any emit in the upstart script the other scripts should be depending on, and yet these other scripts get executed | 22:22 |
ion | See for instane starting(7) and the ones in its “see also” section. | 22:25 |
ion | c | 22:25 |
dumb_ass | here we are supposed to be triggered by "started" | 22:26 |
dumb_ass | and i assume "started" is triggered by the "end script" | 22:26 |
ion | No, see started(7). It’s emitted when a job has finished starting and is running. Upstart job definitions aren’t sequential scripts. | 22:27 |
dumb_ass | so, is it the first line in the script that they are looking at? | 22:27 |
* dumb_ass is grabbing a hold of an installation with man pages | 22:27 | |
ion | What is looking at? | 22:28 |
ion | See init(5) for documentation about the job definition syntax. | 22:28 |
dumb_ass | upstart... | 22:28 |
dumb_ass | looking at init | 22:28 |
ion | By default, a service-type job has started when the pre-start script (if any) has been run, the main script (if any) has been started and the post-start script (if any) has been run. | 22:30 |
dumb_ass | oh... | 22:30 |
dumb_ass | thanks! | 22:31 |
dumb_ass | nope | 22:31 |
dumb_ass | oh | 22:31 |
dumb_ass | this is braindead | 22:31 |
dumb_ass | i am about to have a heat-stroke | 22:33 |
dumb_ass | it doesn't give a shit about the main script | 22:33 |
dumb_ass | but what matters is the post started, if present | 22:33 |
ion | huh? | 22:33 |
dumb_ass | i am outraged | 22:33 |
_dvorak_ | does the "respawn" work even if I use the "script/end script" pair | 23:31 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!