marrusl | magicrobotmonkey, if you want to restart it without rebooting, you can rename the job file and start that job name. | 00:19 |
---|---|---|
=== marrusl is now known as marrusl_afk | ||
=== Md_ is now known as Md | ||
=== phroddon_ is now known as phroddon | ||
=== marrusl_afk is now known as marrusl | ||
magicrobotmonkey | lets say you've got this daemon that, according to strace, forks 5 times | 17:22 |
SpamapS | magicrobotmonkey: "this daemon" is doing it wrong | 17:23 |
magicrobotmonkey | i know | 17:23 |
SpamapS | magicrobotmonkey: do you have any control over the daemon? | 17:25 |
SpamapS | magicrobotmonkey: like, can you change its code or pass options to run it in the foreground? | 17:25 |
magicrobotmonkey | yea i can probably get in there and hack around a bit | 17:25 |
magicrobotmonkey | https://gist.github.com/acdha/1506392 | 17:26 |
magicrobotmonkey | im also not sure that it actually is forking 5 times | 17:26 |
SpamapS | its a shell script? | 17:27 |
SpamapS | unless the shell script uses 'exec', thats one fork | 17:27 |
magicrobotmonkey | no its a shell script that calls a python script that does it's own daemonizing | 17:29 |
SpamapS | ah | 17:29 |
SpamapS | graphite is made by pretty sane people, I bet it can run in the foreground | 17:29 |
magicrobotmonkey | yea i agree, i'll keep hacking around, thanks | 17:30 |
magicrobotmonkey | hey what happens if your script has a prestart but no script/exec, like this: https://github.com/gosquared/graphite-cookbook/blob/master/templates/default/carbon-cache.upstart.erb | 20:29 |
jY | is there anyway to fix the hang on start/stop without a reboot or rename the conf in /etc/init | 20:33 |
SpamapS | jY: yes, you can loop the pid space to re-create the dead pid | 20:37 |
jY | SpamapS: but i need to do that for all services | 20:37 |
jY | or just run it once? | 20:37 |
SpamapS | all? | 20:37 |
SpamapS | jY: you have one stuck job right? | 20:38 |
jY | yes | 20:38 |
SpamapS | jY: just once | 20:38 |
jY | whats a command to do that | 20:38 |
SpamapS | jY: there's a ruby script that does it linked in the bug | 20:38 |
jY | thanks | 20:38 |
magicrobotmonkey | there's a bash script on it too | 20:40 |
jY | ok i'll try to find the bug | 20:40 |
SpamapS | https://bugs.launchpad.net/upstart/+bug/406397 | 20:41 |
jY | i take it i use the ruby script to hit the pid of the hung start/stop? | 20:44 |
magicrobotmonkey | yup | 20:45 |
jY | thanks guys | 20:47 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!