Type "mount" at your command line. You'll see a listing something like this:
$ mount /dev/sda1 on / type ext3 (rw) none on /proc type proc (rw) /dev/sda7 on /data type ext3 (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) none on /dev/shm type tmpfs (rw) /dev/sda5 on /tmp type ext3 (rw) /dev/sda3 on /usr type ext3 (rw) /dev/sda2 on /var type ext3 (rw) nfsserver:/vol/office/home on /home type nfs (rw,addr=nfsserver) nfsserver:/vol/office/log on /log type nfs (rw,addr=nfsserver)
Each of the /dev/sd\d items is a different disk on your system, and the "type nfs" entries are remote volumes you're connected to.

The system can't operate without / being mounted, so it doesn't make a difference if that's your current working directory. If / is dead, the system definitely needs a reboot anyways, at least.

/var/log (well, /var at least) is usually a separate device, which the system could theoretically live without.

In fact, if your daemon logs via syslog, as such things probably should, the admin can unmount /var/log even if lots of daemons normally log there by reconfiguring syslogd to log somewhere else.

But, in general, /var/xxx is probably an ok 3rd choice, with / being best, and /tmp probably being 2nd.
--
Mike


In reply to Re: Re: Re: how to make a demon in perl? by RMGir
in thread how to make a demon in perl? by Sihal

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.