Reaper and symbolic links


#1

Hello,

I'm trying to restart my application fastcgi processes using reaper.

But I get the following error:

$sudo -u www ./script/process/reaper
Couldn’t find any process matching:
/var/www/example/200605200000/public/dispatch.fcgi

The problem is that it should not look for 20060520000 but for current
which is a symbolic link pointing to 200605200000.

I did the deployment myself, didn’t use Capistrano.

If I remember right Capistrano also uses symbolic links. How is reaper
used then?

BTW if I run:
$sudo -u www ps -A -F | grep dispatch.fcgi

I get:
www 25656 1 0 19632 0 May10 ? 00:00:00 /usr/bin/ruby1.8
/var/www/example/current/public/dispatch.fcgi
www 25657 1 0 19632 0 May10 ? 00:00:00 /usr/bin/ruby1.8
/var/www/example/current/public/dispatch.fcgi


#2

Benigno Uria wrote:

The problem is that it should not look for 20060520000 but for current
which is a symbolic link pointing to 200605200000.

Try with absolute paths:

$sudo /var/www/example/current/script/process/reaper

Zsombor


#3

It functioned correctly. It was so simple…

Thank you, Zsombor.