in reply to Re: How do I start a perl daemon at boot time
in thread How do I start a perl daemon at boot time
Regarding the stopping of a daemon, I've found it useful to use a /global/ variable set to true, loop while variable is true and let the daemon do its work.
Then, install one or more appropriate signal handlers (lets say, for SIGHUP & friends) and have them undefine the global variable. This allows the daemon to properly to *finish* its operations; critical are, for example, IO operations.
Without these precautions, some data could get corrupted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I start a perl daemon at boot time
by magnolia (Initiate) on Feb 05, 2007 at 17:13 UTC |