Switch to Proc::Daemon
Mostly working. Tidy-up to be done.