From 07c56086aa0c4e015c9044e333ae4001debcb28d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 30 Apr 2024 13:14:09 +0300 Subject: Update content for html --- .../2011-05-07-perl-daemon-service-framework.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'gemfeed/2011-05-07-perl-daemon-service-framework.html') diff --git a/gemfeed/2011-05-07-perl-daemon-service-framework.html b/gemfeed/2011-05-07-perl-daemon-service-framework.html index 66e2690a..34ee06d9 100644 --- a/gemfeed/2011-05-07-perl-daemon-service-framework.html +++ b/gemfeed/2011-05-07-perl-daemon-service-framework.html @@ -8,7 +8,7 @@ -

Perl Daemon (Service Framework)


+

Perl Daemon (Service Framework)



Published at 2011-05-07T22:26:02+01:00; Updated at 2021-05-07

@@ -21,7 +21,7 @@
PerlDaemon is a minimal daemon for Linux and other Unix like operating systems programmed in Perl. It is a minimal but pretty functional and fairly generic service framework. This means that it does not do anything useful other than providing a framework for starting, stopping, configuring and logging. To do something useful, a module (written in Perl) must be provided.

-

Features


+

Features



PerlDaemon supports:

@@ -35,7 +35,7 @@
  • Easy to extend
  • Multi-instance support (just use a different directory for each instance).

  • -

    Quick Guide


    +

    Quick Guide




    To stop a daemon from running in foreground mode, "Ctrl+C" must be hit. To see more available startup options run "./control" without any argument.

    -

    How to configure


    +

    How to configure



    The daemon instance can be configured in "./conf/perldaemon.conf". If you want to change a property only once, it is also possible to specify it on the command line (which will take precedence over the config file). All available config properties can be displayed via "./control keys":

    @@ -87,7 +87,7 @@ daemon.alivefile.wd=./
    -

    Example


    +

    Example



    So let's start the daemon with a loop interval of 10 seconds:

    @@ -117,13 +117,13 @@ http://www.gnu.org/software/src-highlite -->
    $ ./control keys daemon.loopinterval=10 > new.conf; mv new.conf conf/perldaemon.conf
     

    -

    HiRes event loop


    +

    HiRes event loop



    PerlDaemon uses Time::HiRes to make sure that all the events run incorrect intervals. For each loop run, a time carry value is recorded and added to the next loop run to catch up on lost time.

    -

    Writing your own modules


    +

    Writing your own modules



    -

    Example module


    +

    Example module



    This is one of the example modules you will find in the source code. It should be pretty self-explanatory if you know Perl :-).

    @@ -162,7 +162,7 @@ http://www.gnu.org/software/src-highlite --> 1;
    -

    Your own module


    +

    Your own module



    Want to give it some better use? It's just as easy as:

    @@ -181,7 +181,7 @@ http://www.gnu.org/software/src-highlite -->
    BTW: You can install as many modules within the same instance as desired. But they are run in sequential order (in future, they can also run in parallel using several threads or processes).

    -

    May the source be with you


    +

    May the source be with you



    You can find PerlDaemon (including the examples) at:

    -- cgit v1.2.3