PerlDaemon
Writing your own daemon...
PerlDaemon is a minimal linux/unix daemon programmed in Perl 5. It can be extended to fit any task...
Automatic daemonizing
Logging and logrotate support (SIGHUP)
Clean shutdown support (SIGTERM)
Pidfile support (incl. check on startup)
Easy to configure
Easy to extend using perl modules