[Openais] change running dir to /var/openais

Ola Lundqvist ola.lundqvist at tietoenator.com
Thu Nov 30 23:37:17 PST 2006


Hi

Yes I know that xen, vserver among others use different directories, but
that is also why they need to be patched in order to go into
distributions like Debian GNU/Linux.

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

In chapter 5:
/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.

Regards,

// Ola

Steven Dake wrote:
> I am happy to change it yet again.  I wasn't sure what the proper
> location should be.  Other tools such as xen use /var/xen however.
> 
> Could you point me at the spec/page # that says /var/lib should be used?
> 
> Regards
> steve
> 
> On Thu, 2006-11-30 at 07:40 +0100, Ola Lundqvist wrote:
>>Hi
>>
>>In order to follow FHS (and LSB), shouldn't this directory be
>>/var/lib/openais instead? /var/openais do not exist in the FHS standard.
>>
>>Regards,
>>
>>// Ola
>>
>>Steven Dake wrote:
>>>Patch attached.  Otherwise the ringid and core files are deleted during
>>>reboot.
>>>
>>>Regards
>>>-steve
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>Index: exec/totemsrp.c
>>>===================================================================
>>>--- exec/totemsrp.c	(revision 1312)
>>>+++ exec/totemsrp.c	(working copy)
>>>@@ -690,7 +690,7 @@
>>> 
>>> 	rundir = getenv ("OPENAIS_RUN_DIR");
>>> 	if (rundir == NULL) {
>>>-		rundir = "/var/run/openais";
>>>+		rundir = "/var/openais";
>>> 	}
>>> 	
>>> 	res = mkdir (rundir, 0700);
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Openais mailing list
>>>Openais at lists.osdl.org
>>>https://lists.osdl.org/mailman/listinfo/openais
>>
> 


-- 
 Ola Lundqvist, Civilingenjör Informationsteknologi
 TietoEnator R&D Services AB, Telecom Platforms
 Email:  ola.lundqvist at tietoenator.com
 Phone:  +46 (0)54-29 42 17



More information about the Openais mailing list