[Openais] Corosync Patch: Fix the default for COROSYNC_RUN_DIR
Andrew Beekhof
andrew at beekhof.net
Fri Apr 9 06:05:16 PDT 2010
This looks like a copy/paste error to me...
The "RUN" in COROSYNC_RUN_DIR would seem to imply /var/run
Also /var/lib is persistent and doesn't need to be created at startup.
On the other-hand, LSB states that the contents of /var/run is blow
away at boot time.
So I'm reasonably sure the following patch is correct.
Please ACK.
[02:59 PM] beekhof at f12 ~/Development/sources/corosync # svn diff
./exec/totemsrp.c
Index: exec/totemsrp.c
===================================================================
--- exec/totemsrp.c (revision 2756)
+++ exec/totemsrp.c (working copy)
@@ -775,7 +775,7 @@
rundir = getenv ("COROSYNC_RUN_DIR");
if (rundir == NULL) {
- rundir = LOCALSTATEDIR "/lib/corosync";
+ rundir = LOCALSTATEDIR "/run/corosync";
}
res = mkdir (rundir, 0700);
More information about the Openais
mailing list