On Thursday, January 10, 2013 11:58:21 AM UTC+1, Stachu 'Dozzie' K. wrote:
> Have you compared your work with App::Daemon module? Though it redirects
>
> STDOUT/STDERR to /dev/null instead of syslog (but on the other hand, it
>
> pulls Log::Log4perl, and with Tie::Log4perl redirecting could be done
>
> pretty easily).
>
>
>
> --
>
> Secunia non olet.
>
> Stanislaw Klekot
Ah, yes, that is one of the modules I tried. That is, in fact, the module that
made me think I wanted something easier, because I spent a whole morning
reading through its documentation and that of Log4Perl, and though it pushed
me to learn a whole bunch of new things, it's just what I wanted to avoid
(I mean, spending too much time learning something just to decide afterwards
it doesn't fit my needs).
I took inspiration from "regular" daemons (like named, (x)inetd, and so on),
and wanted something to turn my scripts into such a daemon quickly.
Besides, another feature one might take care of is reloading configuration
upon getting signaled with SIGHUP. That is something I have code for, but it's
not really something that fits into Script::Daemonizer (and it's simple/dumb
philosophy). I'm thinking to push this a bit further and use
Script::Daemonizer to build a UNIX::Daemon around it.
But that's a little more pretentious :$
Giacomo