To have it survive your exiting you could take a look at Proc::Daemon. But if you want it up all of the time you absolutely should either periodically try to launch it from cron or else put it in your rc.d. A very common Unix mistake is to just leave critical processes running but not take the necessary steps to handle a reboot. Then a few months later when the project may have been all forgotten about (and the person may have moved on) when the box is rebooted for some reason stuff just starts failing for no apparent reason.

If you know people who are uncomfortable about rebooting Unix, people in their environment are probably making that mistake. Just because you can leave Unix up for months at a time doesn't mean that you should let people get in the habit of relying on that. If this is a problem then you should get into the habit of rebooting the servers on a regular basis whether or not they need it.

Of course if users and developers are properly trained then there is no reason not to leave it on. But this is a user issue, not an OS problem. However if you are running Windows NT you should reboot periodically on general principle. And that is an OS issue. (I hear that Win2K is better in this respect, but I am not running it.)

(Of course my laptop has not been rebooted in 95 days, and was rebooted then only because my wife wanted to move it for a bit...)


In reply to Re (tilly) 1: Infinte perl script - Part 2 by tilly
in thread Infinte perl script - Part 2 by r.joseph

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.