=== JanC_ is now known as JanC | ||
Schuyler | hello | 18:10 |
---|---|---|
Schuyler | can anyone tell me why 'sudo initctl start $job' might hang? | 18:11 |
Schuyler | I'm trying to run a Ruby app using Thin and I'd like to use upstart to supervise it. | 18:11 |
Schuyler | here's the /etc/init/app.conf | 18:13 |
Schuyler | https://gist.github.com/661448 | 18:13 |
JanC | Schuyler: my guess would be that it doesn't detect that the app is running | 19:03 |
Schuyler | it doesn't seem to even start the app. | 19:03 |
Schuyler | if I run that /usr/bin/thin command line manually, it works. | 19:04 |
Schuyler | upstream initctl just hangs. | 19:04 |
JanC | did you check with 'top' or 'ps' whether it runs or not ? | 19:05 |
JanC | there are some issues in the current release of upstart with detecting if a service runs or not | 19:06 |
Schuyler | JanC, I think I got it figured out. | 19:45 |
Schuyler | However, I had to reboot. | 19:45 |
Schuyler | I ran strace and initctl was blocked on reading/writing to a socket. | 19:45 |
Schuyler | it had hung on a call to poll() | 19:45 |
Schuyler | rebooting fixed the hanging problem | 19:45 |
JanC | if you have been trying different settings, upstart sometimes gets confused ;) | 19:46 |
JanC | at least, IME | 19:46 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!