[cups.bugs] [LOW] STR #3067: State information belongs in /var/lib/cups, not /etc/cups

LaMont Jones lamont at ubuntu.com
Tue Jan 20 11:01:08 PST 2009


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I hate it when the editor eats my text...

To say what I meant to say...  The FHS says:

===========================================================
/etc : Host-specific system configuration

Purpose

The /etc hierarchy contains configuration files. A "configuration file" is
a local file used to control the operation of a program; it must be static
and cannot be an executable binary. [4]

....

/var/lib : Variable state information

Purpose

This hierarchy holds state information pertaining to an application or the
system. State information is data that programs modify while they run, and
that pertains to one specific host. Users must never need to modify files
in /var/ lib to configure a package's operation.

State information is generally used to preserve the condition of an
application (or a group of inter-related applications) between invocations
and between different instances of the same application. State information
should generally remain valid after a reboot, should not be logging
output, and should not be spooled data.

===========================================================

All of the State* variables, in printers.conf are state, not
configuration.

The timestamp (and file) should only be written if the user modifies the
configuration. (And then only if the configuration edits actually result
in changes.)

lamont

Link: http://www.cups.org/str.php?L3067
Version: 1.3.9





More information about the cups mailing list