I'm looking for some strightforward example of perl-based server. This would include - init-scripts, logfiles, syslog, possibly monitoring etc...

As I am mostly debian-based, debian source package in some 'goodbye-world' fassion would be best.

There exist Net::Server:: family of modules, but they don't account for starting/stoping/monitoring, there's no logrotate integration, and theye're Net::Server-centered, and noone said server has to be net-based, deamons like cron don't use net.

This is basically Best-Practices question, all the pieces I can easily gather/create myself, but what do people recommend ( for example, it's dead simple to log to syslog, and let the system rotate it's logs, but I think i'd prefer to log to /var/log/daemon/something.log. But then I have to think about logfiles growing, rotating them.. I can do it myself, but is it the best solution?. Another example - /etc/init.d/daemon stop/start. How should one mark that the daemon is running? Pidfile? Should I create it myself, or let some tool like start-stop-daemon manage it?)


In reply to Perl-based server integration. Looking for example. by Eyck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.