in reply to Perl-based server integration. Looking for example.

start-stop-daemon will gladly manage a pidfile for you. Similarly, logrotate will gladly rotate your logs for you. Both are standard, and IIRC required, parts of a debian system. The only thing using them will require on your part is that you install a $SIG{HUP} handler that reopens your logfile. (Otherwise you will continue writing to the old log file after it's been mv'd away.)

Replies are listed 'Best First'.
Re: Re: Perl-based server integration. Looking for example.
by Eyck (Priest) on Apr 05, 2004 at 08:12 UTC
    In search of solution I re-stumbled on daemon-tools from djb. It apears they do all the dirty work - starting, stoping, logging and monitoring of services under their control. ( I used to think they are only for starting/stopping ). This would be great solution, but they are aggressively non-free. I think that re-implementation in perl would be short and effective.