diff options
| author | Paul Buetow <paul@buetow.org> | 2024-04-30 13:14:09 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-04-30 13:14:09 +0300 |
| commit | 07c56086aa0c4e015c9044e333ae4001debcb28d (patch) | |
| tree | 2b2c0a3dae32313d55c6f223095612dcf0b7d779 /gemfeed/2011-05-07-perl-daemon-service-framework.html | |
| parent | 5ad16713db1f011c08d2db602ed5b1d3294f0939 (diff) | |
Update content for html
Diffstat (limited to 'gemfeed/2011-05-07-perl-daemon-service-framework.html')
| -rw-r--r-- | gemfeed/2011-05-07-perl-daemon-service-framework.html | 20 |
1 files changed, 10 insertions, 10 deletions
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 @@ <link rel="stylesheet" href="style-override.css" /> </head> <body> -<h1 style='display: inline'>Perl Daemon (Service Framework)</h1><br /> +<h1 style='display: inline' id='PerlDaemonServiceFramework'>Perl Daemon (Service Framework)</h1><br /> <br /> <span class='quote'>Published at 2011-05-07T22:26:02+01:00; Updated at 2021-05-07</span><br /> <br /> @@ -21,7 +21,7 @@ <br /> <span>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.</span><br /> <br /> -<h2 style='display: inline'>Features</h2><br /> +<h2 style='display: inline' id='Features'>Features</h2><br /> <br /> <span>PerlDaemon supports:</span><br /> <br /> @@ -35,7 +35,7 @@ <li>Easy to extend</li> <li>Multi-instance support (just use a different directory for each instance).</li> </ul><br /> -<h2 style='display: inline'>Quick Guide</h2><br /> +<h2 style='display: inline' id='QuickGuide'>Quick Guide</h2><br /> <br /> <!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini @@ -53,7 +53,7 @@ http://www.gnu.org/software/src-highlite --> <br /> <span>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.</span><br /> <br /> -<h2 style='display: inline'>How to configure</h2><br /> +<h2 style='display: inline' id='Howtoconfigure'>How to configure</h2><br /> <br /> <span>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":</span><br /> <br /> @@ -87,7 +87,7 @@ daemon<font color="#990000">.</font><font color="#009900">alivefile</font><font daemon<font color="#990000">.</font><font color="#009900">wd</font><font color="#990000">=./</font> </pre> <br /> -<h2 style='display: inline'>Example </h2><br /> +<h2 style='display: inline' id='Example'>Example </h2><br /> <br /> <span>So let's start the daemon with a loop interval of 10 seconds:</span><br /> <br /> @@ -117,13 +117,13 @@ http://www.gnu.org/software/src-highlite --> <pre>$ <font color="#990000">.</font>/control keys daemon<font color="#990000">.</font><font color="#009900">loopinterval</font><font color="#990000">=</font><font color="#993399">10</font> <font color="#990000">></font> new<font color="#990000">.</font>conf<font color="#990000">;</font> mv new<font color="#990000">.</font>conf conf/perldaemon<font color="#990000">.</font>conf </pre> <br /> -<h2 style='display: inline'>HiRes event loop</h2><br /> +<h2 style='display: inline' id='HiReseventloop'>HiRes event loop</h2><br /> <br /> <span>PerlDaemon uses <span class='inlinecode'>Time::HiRes</span> 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.</span><br /> <br /> -<h2 style='display: inline'>Writing your own modules</h2><br /> +<h2 style='display: inline' id='Writingyourownmodules'>Writing your own modules</h2><br /> <br /> -<h3 style='display: inline'>Example module</h3><br /> +<h3 style='display: inline' id='Examplemodule'>Example module</h3><br /> <br /> <span>This is one of the example modules you will find in the source code. It should be pretty self-explanatory if you know Perl :-).</span><br /> <br /> @@ -162,7 +162,7 @@ http://www.gnu.org/software/src-highlite --> <font color="#993399">1</font><font color="#990000">;</font> </pre> <br /> -<h3 style='display: inline'>Your own module</h3><br /> +<h3 style='display: inline' id='Yourownmodule'>Your own module</h3><br /> <br /> <span>Want to give it some better use? It's just as easy as:</span><br /> <br /> @@ -181,7 +181,7 @@ http://www.gnu.org/software/src-highlite --> <br /> <span>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).</span><br /> <br /> -<h2 style='display: inline'>May the source be with you</h2><br /> +<h2 style='display: inline' id='Maythesourcebewithyou'>May the source be with you</h2><br /> <br /> <span>You can find PerlDaemon (including the examples) at:</span><br /> <br /> |
