NAME

Para::Frame::Watchdog - Watches over the process

DESCRIPTION

Makes sure that the daemon runs.

Restarts it if it eats too much memory or if it craches.

Called by Para::Frame/daemonize or Para::Frame/watchdog_startup.

Uses lsof to check if another process uses our port, and tries to kill it if there is any. Works fine for restarting your daemon.

startup

watch_loop

check_process

wait_for_server_startup

check_server_port

terminate_server

restart_server

get_next_server_message

get_server_message

check_connection

on_crash

This may shut down the server completely if restart fails... may want to handle this better

watchdog_crash

startup_in_fork

REAPER

debug

get_procinfo

send_to_server

open_logfile

See also Para::Frame/open_logfile

kill_competition

get_lsof

memusage

get_lsof_parse_message

configure

END

SEE ALSO

Para::Frame