Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357267 - app-admin/syslog-ng syslog-ng.persist should not reside in /var/lib
Summary: app-admin/syslog-ng syslog-ng.persist should not reside in /var/lib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 20:57 UTC by William L. Thomson Jr.
Modified: 2011-05-07 23:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
localstatedir patch (localstatedir.patch,352 bytes, patch)
2011-03-03 20:57 UTC, William L. Thomson Jr.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. 2011-03-03 20:57:01 UTC
syslog-ng uses a syslog-ng.persist file that is created in /var/lib. Per FHS 2.3
that should exist in a subdir, if not one specific to syslog-ng, then
/var/lib/misc.

http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLIBVARIABLESTATEINFORMATION

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]

[38] An important difference between this version of this standard and previous
ones is that applications are now required to use a subdirectory of /var/lib. 


This causes problems on diskless systems with a shared /var/lib. Subdirs that
contain unique per system data are not shared, and instead mounted on top of
the shared /var/lib. I could do the same thing even for a single file,
syslog-ng.persist in this case. However given FHS, it should be written in a
subdir. Which I can then make that unique per system, like other subdirs in
/var/lib that are not shared amongst all diskless systems.

Filed this with upstream
https://bugzilla.balabit.com/show_bug.cgi?id=117

Their comments were to change this during configuration of the sources
./configure --localstatedir=/var/lib/misc 

Attaching a tiny patch
Comment 1 William L. Thomson Jr. 2011-03-03 20:57:39 UTC
Created attachment 264625 [details, diff]
localstatedir patch
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2011-05-07 23:37:16 UTC
fixed in syslog-ng-3.2.4