On 7/28/06, Carlos A. Carnero Delgado <[EMAIL PROTECTED]> wrote:
In the mean time, I'd like to keep ftp-proxy running most of the time. What do you guys use/recommend to watch if a process dies and restart it?
More to the root of the problem, have you turned on verbose debugging output to see if there are any correlations to when it dies? Are any other processes dying unexpectedly? Try passing an additional flag '-D 7' and watch the logs. As a nasty interim hack, and a suggested last resort, you might use a cron job to restart it when it dies (for now) -- it won't be immediate, but you could check at 1 minute intervals. Per minute PID check and restart in root's crontab (ugly): * * * * * /usr/bin/pgrep ftp-proxy 2>&1 >/dev/null || /usr/sbin/ftp-proxy