File ctdb-socket-path.patch of Package ctdb

commit 30bcec58114ffaed4cf79d290875b8c18ff3e94e
Author: Jim McDonough <jmcd@samba.org>
Date:   Fri Apr 1 16:12:04 2011 -0400

    Use correct socket path

diff --git a/doc/ctdb.1.html b/doc/ctdb.1.html
index 701b0dd..e8b9a69 100644
--- a/doc/ctdb.1.html
+++ b/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=&lt;filename&gt;</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
diff --git a/doc/ctdb.1.xml b/doc/ctdb.1.xml
index 31832a3..387de54 100644
--- a/doc/ctdb.1.xml
+++ b/doc/ctdb.1.xml
@@ -113,7 +113,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 
diff --git a/doc/ctdbd.1.html b/doc/ctdbd.1.html
index 063fbce..b1cc06a 100644
--- a/doc/ctdbd.1.html
+++ b/doc/ctdbd.1.html
@@ -100,7 +100,7 @@
           </p></dd><dt><span class="term">--socket=&lt;filename&gt;</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>
diff --git a/doc/ctdbd.1.xml b/doc/ctdbd.1.xml
index 91e2f9f..8075895 100644
--- a/doc/ctdbd.1.xml
+++ b/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>
diff --git a/include/ctdb_protocol.h b/include/ctdb_protocol.h
index 0422afe..e3980b9 100644
--- a/include/ctdb_protocol.h
+++ b/include/ctdb_protocol.h
@@ -21,7 +21,7 @@
 #define _CTDB_PROTOCOL_H
 
 /* location of daemon socket */
-#define CTDB_PATH	"/tmp/ctdb.socket"
+#define CTDB_PATH	"/var/lib/ctdb/ctdb.socket"
 
 /* default ctdb port number */
 #define CTDB_PORT 4379
openSUSE Build Service is sponsored by