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.

  • Comment on Re^2: How do I start a perl daemon at boot time

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
    I finally did it. Thank you all for your support. I still did not understand half a thing I have done but I manage to make the computer do what I wanted from him to do. magnolia