SituationSoap has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a Perl script which will eventually be used as a Daemon on our administration server. A bit of background: it runs as a queuing system for API calls for a vendor API which is limited (it only allows a certain number of calls per day). The planning and initial code on that part has gone well, but from the "running the script as a service" perspective, I have one piece I'd like to knock out before worrying too greatly about the inner workings.

Essentially, I'd like to integrate HUP (http://www.comptechdoc.org/os/linux/usersguide/linux_ugprocesses.html) functionality into the script. I've been trying to plumb the depths of the knowledge of Google, but I'm coming up dry, so far. Does anyone have any suggestions on where I can find a good writeup for integrating HUP functionality in Perl, or should I start trying to bake my own?

Thanks in advance for your help.

Replies are listed 'Best First'.
Re: Linux Service HUP integration?
by psini (Deacon) on Jul 16, 2009 at 17:52 UTC

    For writing a daemon I'd strongly recommend Net::Server. It does everithing you need to demonize a script, and something more.

    Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

      Thanks, that looks like it might integrate a lot of what I need without requiring me to reinvent the wheel. I'll give that a look.