File ctdb-socket-path.patch of Package ctdb.openSUSE_13.1_Update
commit 30bcec58114ffaed4cf79d290875b8c18ff3e94e
Author: Jim McDonough <jmcd@samba.org>
Date: Fri Apr 1 16:12:04 2011 -0400
Use correct socket path
Index: ctdb-2.3/doc/ctdb.1.html
===================================================================
--- ctdb-2.3.orig/doc/ctdb.1.html
+++ ctdb-2.3/doc/ctdb.1.html
@@ -23,7 +23,7 @@
Change the debug level for the command. Default is 0.
</p></dd><dt><span class="term">--socket=<filename></span></dt><dd><p>
Specify the socketname to use when connecting to the local ctdb
- daemon. The default is /tmp/ctdb.socket .
+ daemon. The default is /var/lib/ctdb/ctdb.socket .
</p><p>
You only need to specify this parameter if you run multiple ctdb
daemons on the same physical host and thus can not use the default
Index: ctdb-2.3/doc/ctdb.1.xml
===================================================================
--- ctdb-2.3.orig/doc/ctdb.1.xml
+++ ctdb-2.3/doc/ctdb.1.xml
@@ -118,7 +118,7 @@
<listitem>
<para>
Specify the socketname to use when connecting to the local ctdb
- daemon. The default is /tmp/ctdb.socket .
+ daemon. The default is /var/lib/ctdb/ctdb.socket .
</para>
<para>
You only need to specify this parameter if you run multiple ctdb
Index: ctdb-2.3/doc/ctdbd.1.html
===================================================================
--- ctdb-2.3.orig/doc/ctdbd.1.html
+++ ctdb-2.3/doc/ctdbd.1.html
@@ -100,7 +100,7 @@
</p></dd><dt><span class="term">--socket=<filename></span></dt><dd><p>
This specifies the name of the domain socket that ctdbd will create. This socket is used for local clients to attach to and communicate with the ctdbd daemon.
</p><p>
- The default is /tmp/ctdb.socket . You only need to use this option if you plan to run multiple ctdbd daemons on the same physical host.
+ The default is /var/lib/ctdb/ctdb.socket . You only need to use this option if you plan to run multiple ctdbd daemons on the same physical host.
</p></dd><dt><span class="term">--start-as-disabled</span></dt><dd><p>
This makes the ctdb daemon to be DISABLED when it starts up.
</p><p>
Index: ctdb-2.3/doc/ctdbd.1.xml
===================================================================
--- ctdb-2.3.orig/doc/ctdbd.1.xml
+++ ctdb-2.3/doc/ctdbd.1.xml
@@ -287,7 +287,7 @@
This specifies the name of the domain socket that ctdbd will create. This socket is used for local clients to attach to and communicate with the ctdbd daemon.
</para>
<para>
- The default is /tmp/ctdb.socket . You only need to use this option if you plan to run multiple ctdbd daemons on the same physical host.
+ The default is /var/lib/ctdb/ctdb.socket . You only need to use this option if you plan to run multiple ctdbd daemons on the same physical host.
</para>
</listitem>
</varlistentry>
Index: ctdb-2.3/include/ctdb_protocol.h
===================================================================
--- ctdb-2.3.orig/include/ctdb_protocol.h
+++ ctdb-2.3/include/ctdb_protocol.h
@@ -24,7 +24,7 @@
#ifdef SOCKPATH
#define CTDB_PATH SOCKPATH
#else
-#define CTDB_PATH "/tmp/ctdb.socket"
+#define CTDB_PATH "/var/lib/ctdb/ctdb.socket"
#endif
/* default ctdb port number */