<TT
CLASS="FILENAME"
>/var/lib/misc</TT
>, which is intended for state files
that don't need a subdirectory; the other subdirectories should only
be present if the application in question is included in the
distribution.

<A
NAME="AEN2295"
HREF="#FTN.AEN2295"
><SPAN
CLASS="footnote"
>[38]</SPAN
></A
></P
><P
><TT
CLASS="FILENAME"
>/var/lib/&lt;name&gt;</TT
> is the location that
must be used for all distribution packaging support. Different
distributions may use different names, of course.</P
></DIV
><DIV
CLASS="SECTION"
><HR><H3
CLASS="SECTION"
><A
NAME="REQUIREMENTS13"
>Requirements</A
></H3
><P
>The following directories, or symbolic links to directories, are
required in <TT
CLASS="FILENAME"
>/var/lib</TT
>:</P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><A
NAME="AEN2305"
></A
><TABLE
BORDER="0"
FRAME="void"
CLASS="CALSTABLE"
><COL><COL><THEAD
><TR
><TH
>Directory</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
><TT
CLASS="FILENAME"
>misc</TT
></TD
><TD
>Miscellaneous state data</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><DIV
CLASS="SECTION"
><HR><H3
CLASS="SECTION"
><A
NAME="SPECIFICOPTIONS23"
>Specific Options</A
></H3
><P
>The following directories, or symbolic links to directories, must be in <TT
CLASS="FILENAME"
>/var/lib</TT
>, if the
corresponding subsystem is installed:</P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><A
NAME="AEN2320"
></A
><TABLE
BORDER="0"
FRAME="void"
CLASS="CALSTABLE"
><COL><COL><THEAD
><TR
><TH
>Directory</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
>&lt;editor&gt;</TD
><TD
>Editor backup files and state (optional)</TD
></TR
><TR
><TD
>&lt;pkgtool&gt;</TD
><TD
>Packaging support files (optional)</TD
></TR
><TR
><TD
>&lt;package&gt;</TD
><TD
>State data for packages and subsystems (optional)</TD
></TR
><TR
><TD
><B
CLASS="COMMAND"
>hwclock</B
></TD
><TD
>State directory for hwclock (optional)</TD
></TR
><TR
><TD
><B
CLASS="COMMAND"
>xdm</B
></TD
><TD
>X display manager variable data (optional)</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><DIV
CLASS="SECTION"
><HR><H3
CLASS="SECTION"
><A
NAME="VARLIBLTEDITORGTEDITORBACKUPFILESAN"
>/var/lib/&lt;editor&gt; : Editor backup files and state (optional)</A
></H3
><DIV
CLASS="SECTION"
><H4
CLASS="SECTION"
><A
NAME="PURPOSE39"
>Purpose</A
></H4
><P
>These directories contain saved files generated by any
unexpected termination of an editor (e.g., <B
CLASS="COMMAND"
>elvis</B
>,
<B
CLASS="COMMAND"
>jove</B
>, <B
CLASS="COMMAND"
>nvi</B
>).</P
><P
>Other editors may not require a directory for crash-recovery
files, but may require a well-defined place to store other information
while the editor is running. This information should be stored in a
subdirectory under <TT
CLASS="FILENAME"
>/var/lib</TT
> (for example, GNU
Emacs would place lock files in
<TT
CLASS="FILENAME"
>/var/lib/emacs/lock</TT
>).</P
><P
>Future editors may require additional state information beyond
crash-recovery files and lock files &mdash; this information should
also be placed under
<TT
CLASS="FILENAME"
>/var/lib/&lt;editor&gt;</TT
>.</P
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Rationale</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Previous Linux releases, as well as all commercial vendors, use
<TT
CLASS="FILENAME"
>/var/preserve</TT
> for vi or its clones. However,
each editor uses its own format for these crash-recovery files, so a
separate directory is needed for each editor.</P
><P
>Editor-specific lock files are usually quite different from the
device or resource lock files that are stored in
<TT
CLASS="FILENAME"
>/var/lock</TT
> and, hence, are stored under
<TT
CLASS="FILENAME"
>/var/lib</TT
>.&#13;</P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="SECTION"
><HR><H3
CLASS="SECTION"
><A
NAME="VARLIBHWCLOCKSTATEDIRECTORYFORHWCLO"
>/var/lib/hwclock : State directory for hwclock (optional)</A
></H3
><DIV
CLASS="SECTION"
><H4
CLASS="SECTION"
><A
NAME="PURPOSE40"
>Purpose</A
></H4
><P
>This directory contains the file
<TT
CLASS="FILENAME"
>/var/lib/hwclock/adjtime</TT
>.</P
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Rationale</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>In FHS 2.1, this file was <TT
CLASS="FILENAME"
>/etc/adjtime</TT
>, but
as <B
CLASS="COMMAND"
>hwclock</B
> updates it, that was obviously
incorrect.&#13;</P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="SECTION"
><HR><H3
CLASS="SECTION"
><A
NAME="VARLIBMISCMISCELLANEOUSVARIABLEDATA"
>/var/lib/misc : Miscellaneous variable data</A
></H3
><DIV
CLASS="SECTION"
><H4
CLASS="SECTION"
><A
NAME="PURPOSE41"
>Purpose</A
></H4
><P
>This directory contains variable data not placed in a
subdirectory in <TT
CLASS="FILENAME"
>/var/lib</TT
>. An attempt should be
made to use relatively unique names in this directory to avoid
namespace conflicts.

<A
NAME="AEN2381"
HREF="#FTN.AEN2381"
><SPAN
CLASS="footnote"
>[39]</SPAN
></A
></P
></DIV
></DIV
></DIV
><DIV
CLASS="SECTION"
><HR><H2
CLASS="SECTION"
><A
NAME="VARLOCKLOCKFILES"
>/var/lock : Lock files</A
></H2
><DIV
CLASS="SECTION"
><H3
CLASS="SECTION"
><A
NAME="PURPOSE42"
>Purpose</A
></H3
><P
>Lock files should be stored within the
<TT
CLASS="FILENAME"
>/var/lock</TT
> directory structure.</P
><P
>Lock files for devices and other resources shared by multiple
applications, such as the serial device lock files that were
originally found in either <TT
CLASS="FILENAME"
>/usr/spool/locks</TT
> or
<TT
CLASS="FILENAME"
>/usr/spool/uucp</TT
>, must now be stored in
<TT
CLASS="FILENAME"
>/var/lock</TT
>. The naming convention which must be
used is "LCK.." followed by the base name of the device. For example,
to lock /dev/ttyS0 the file "LCK..ttyS0" would be created.

<A
NAME="AEN2396"
HREF="#FTN.AEN2396"
><SPAN
CLASS="footnote"
>[40]</SPAN
></A
></P
><P
>The format used for the contents of such lock files must be the

Prev | Next
Pg.: 1 ... 16 17 18 19 20 21 22 23 24 25 26 ... 30


Back to home | File page

Subscribe | Register | Login | N