librelist archives

« back to archive

Procer monitored process keeps getting restarted

Procer monitored process keeps getting restarted

From:
Pradeep Gowda
Date:
2010-10-21 @ 01:18
I'm trying to use Procer to run gitit[1], a wiki software.

The run file is as follows:
----
$ cat profiles/gitit/run
#!/bin/sh

DEPLOY=/home/pradeep/deployment
SOURCE=/home/pradeep/devwiki

cd $SOURCE
gitit -f devwiki.conf &
echo $! > $DEPLOY/profiles/gitit/gitit.pid
----

The child process (gitit) runs fine when started using the run script alone,
but when run with procer, it keeps restarting.

The error.log

-----
$  tail -f profiles/error.log
INFO (src/unixy.c:139) Process 3543 is not running anymore, so
removing PID file /home/pradeep/deployment/profiles/gitit/gitit.pid.
DEBUG procer.c:39: ACTION:
command=/home/pradeep/deployment/profiles/gitit/run,
pid_file=/home/pradeep/deployment/profiles/gitit/gitit.pid, restart=1,
depends=(null)
DEBUG procer.c:58: WAITING FOR CHILD.
INFO (src/unixy.c:82) Now running as UID:1000, GID:1000DEBUG
procer.c:62: Command ran and exited successfully, now looking for the
PID file.
INFO (src/unixy.c:139) Process 3545 is not running anymore, so
removing PID file /home/pradeep/deployment/profiles/gitit/gitit.pid.
DEBUG procer.c:39: ACTION:
command=/home/pradeep/deployment/profiles/gitit/run,
pid_file=/home/pradeep/deployment/profiles/gitit/gitit.pid, restart=1,
depends=(null)
DEBUG procer.c:58: WAITING FOR CHILD.INFO (src/unixy.c:82) Now running
as UID:1000, GID:1000
DEBUG procer.c:62: Command ran and exited successfully, now looking
for the PID file.
----

What am I missing here?

+PG


[1] http://gitit.net/

Re: Procer monitored process keeps getting restarted

From:
Pradeep Gowda
Date:
2010-10-21 @ 02:14
On Wed, Oct 20, 2010 at 9:18 PM, Pradeep Gowda <pradeep@btbytes.com> wrote:
> What am I missing here?

Never mind. I fixed it.

I had to provide the explicit path to the executable.
Interestingly, the error.log did not say anything about the actual
error, but the
run.log did.

Isn't it better to print the error messages in the error.log

ie.,
/home/pradeep/deployment/profiles/gitit/run: line 7: gitit: command not found

+PG

Re: [mongrel2] Re: Procer monitored process keeps getting restarted

From:
Zed A. Shaw
Date:
2010-10-21 @ 08:35
On Wed, Oct 20, 2010 at 10:14:18PM -0400, Pradeep Gowda wrote:
> Isn't it better to print the error messages in the error.log
> 
> ie.,
> /home/pradeep/deployment/profiles/gitit/run: line 7: gitit: command not found

Can you put in a ticket for it?  I'll be hitting procer soon:

http://mongrel2.org/tktnew


-- 
Zed A. Shaw
http://zedshaw.com/