[PATCH] run uuidgen --ensure in the init script

Havoc Pennington hp at redhat.com
Fri Oct 20 13:29:09 PDT 2006


/var/lib sounds right to me in FHS, relevant text from 
http://www.pathname.com/fhs/pub/fhs-2.3.html#THEVARHIERARCHY
is appended.

/var/run according to this page has to get nuked on each reboot. I think 
the /var/lib behavior is slightly nicer for the machine id.

Havoc

/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.

An application (or a group of inter-related applications) must use a 
subdirectory of /var/lib for its data. There is one required 
subdirectory, /var/lib/misc, 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. [38]

/var/lib/<name> is the location that must be used for all distribution 
packaging support. Different distributions may use different names, of 
course.




More information about the dbus mailing list