god can't start my daemon but I can manually

543 views
Skip to first unread message

Josh

unread,
Oct 12, 2009, 11:50:38 AM10/12/09
to god.rb
In a nutshell, god repeatedly tries to start my daemon and fails
"start command exited with non-zero code = 1", however if I copy/paste
that command and run it w/ sudo it gets started just fine, god even
recognizes that the new process is running.

http://www.pastie.org/651594 for details.

I've been trying to get more info out of the god log, specifically
what the error is that god is seeing, but I can't get any extra info
out of it, any thoughts on that?

Thanks!

Matt Davies

unread,
Oct 12, 2009, 12:54:32 PM10/12/09
to god...@googlegroups.com
Hi Josh

Stick a line like this into your god config block for the process your
monitoring.
Something like

w.log = '/path/to/filename'

that should give you more information



2009/10/12 Josh <josh.m...@gmail.com>:

Mirko

unread,
Oct 27, 2009, 3:39:32 AM10/27/09
to god.rb
I'm running into the same issue with my daemon. No idea why it fails,
but I found a workaround.

Here's the original line from my god config:

w.start = "/path/to/my/app/bin/my_app.rb start"

Here's the line that works:

w.start = "cd /path/to/my/app; bin/my_app.rb start"

Weird... But at least this seems to be working.

-Mirko


On Oct 12, 8:50 am, Josh <josh.m.sha...@gmail.com> wrote:
> In a nutshell, god repeatedly tries to start my daemon and fails
> "start command exited with non-zero code = 1", however if I copy/paste
> that command and run it w/ sudo it gets started just fine, god even
> recognizes that the new process is running.
>
> http://www.pastie.org/651594for details.

Eric

unread,
Nov 9, 2009, 3:23:33 PM11/9/09
to god.rb
You can use:

w.dir = "/path/to/my/app"

to control what directory the watcher is run from.

This will have the same effect as your "cd" with a little bit more
error checking.

Mirko

unread,
Nov 11, 2009, 12:50:39 AM11/11/09
to god.rb
Erik,

Thanks for the info! "w.dir" sounds like exactly the right solution.

-Mirko
Reply all
Reply to author
Forward
0 new messages