Forum: Ruby on Rails Reaper and symbolic links

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Benigno Uria (Guest)
on 2006-05-22 02:52
(Received via mailing list)
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
Dee Z. (Guest)
on 2006-05-22 16:56
(Received via mailing list)
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
Benigno Uria (Guest)
on 2006-05-22 18:10
(Received via mailing list)
It functioned correctly. It was so simple...

Thank you, Zsombor.
This topic is locked and can not be replied to.