=== JanC is now known as Guest37928 | ||
=== JanC_ is now known as JanC | ||
[diablo] | Good morning #upstart ... guys we have reason to believe that Upstart may well be killing a process... so we'd like to have detailed logs from upstart... sadly we're running RHEL6 so it's version 0.6.5 | 06:48 |
---|---|---|
[diablo] | does anyone know how the hell we can enable this please? I see on man init that there's --verbose on the boot line, but this does not give us any info that we can see | 06:49 |
chras | [diablo]: iirc its --debug | 13:29 |
chras | but you can also do initctl log-priority debug after the system is already running | 13:30 |
chras | but that will just be upstart debug, not neccecerily your event/jobs debug | 13:30 |
=== Trevinho_ is now known as Trevinho | ||
lll7 | hi! | 19:44 |
lll7 | https://github.com/KristinaEtc/go-nominatim/tree/master/daemons i wroted daemons for upstart, but when i run it in console (nsqd, for example) it's not closing correctly, just processing. why it could be so? | 19:44 |
chras | are you sure that your daemon is only a single fork ? | 20:09 |
chras | might need expect daemon instead | 20:10 |
lll7 | :0 oh, i'm not sure. thank you for answer! starting search in google your words | 20:11 |
chras | imo | 20:11 |
chras | if you're controlling your own code, id suggest adding in some sort of --foreground option | 20:12 |
chras | then you wouldnt need an expect at all | 20:12 |
lll7 | chras, like this? https://askubuntu.com/questions/52091/upstart-script-for-a-transmission-daemon-executed-as-a-normal-user | 20:14 |
lll7 | (my english and programming skills are not good. need to ask that) | 20:15 |
chras | sec, reading | 20:15 |
chras | yeah sorta like that | 20:16 |
chras | if your program had a --foreground option then you wouldnt need any sort of 'expect' handling in upstart, as it would have direct control over the process's console | 20:17 |
lll7 | thank you, tomorrow i'll check it | 20:17 |
lll7 | c: | 20:17 |
chras | the expect fork / expect daemon is kinda kludgey | 20:17 |
chras | expect fork expects that you do -exactly- 1 single fork | 20:17 |
chras | expect daemon expects exactly 2 | 20:17 |
chras | depending what you wrote your software in, it could be either | 20:18 |
lll7 | saved your words in file | 20:32 |
lll7 | going to sleep | 20:32 |
lll7 | thank you, thank you very much | 20:33 |
lll7 | good night :) | 20:33 |
chras | good luck | 20:33 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!