in reply to Re: daemonize a perl script on redhat linux 7.3
in thread daemonize a perl script on redhat linux 7.3

I heartily second the recommendation of the Network Programming volume. I would also suggest Net::Server as a good module to use for writing daemons, as it natively supports several forking models. POE is also a very powerful and useful tool, but with a longer learning period.

As far as being RH 7.3-centric, none of these (or the previously-mentioned Proc::Daemon) are shipped with Perl in RH 7.3. You will have to retrieve any of these (and their dependancies) from CPAN.

--rjray

  • Comment on Re: Re: daemonize a perl script on redhat linux 7.3

Replies are listed 'Best First'.
Re: Re: Re: daemonize a perl script on redhat linux 7.3
by sth (Priest) on Aug 01, 2002 at 18:57 UTC

    I heartily third that recommendation. I've gotten so much

    use out of that book. The best thing is the example code,

    much like the Richard Stevens 'C' code from "Advance

    Programming in the Unix Enviorment", you can take the code,

    make minimal changes and your up an running. I've had to

    write a few daemon processes in the last year, and the book

    was a great help. The daemon code in Chapter 14 will give

    you syslogging and kill -HUP functionality as well.

    STH