Your signal approach is sound. See 'man 7 signal' for a summary of system signals available to you, and the conventions associated with them.
A full-fledged daemon has no controlling tty, but it's not clear you're taking it that far. In any case, a DESTROY() method may be what you need for cleaning up before the daemon dies. Documentation is in the usual places (perldoc and Camel). It's brief but ought to be enough.
After Compline,
Zaxo
In reply to Re: Gracefully exiting daemons
by Zaxo
in thread Gracefully exiting daemons
by asiufy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |