File ctdb-socket-path.patch of Package ctdb

Index: ctdb-1.0.89/doc/ctdb.1.html
===================================================================
--- ctdb-1.0.89.orig/doc/ctdb.1.html
+++ ctdb-1.0.89/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
Index: ctdb-1.0.89/doc/ctdbd.1.html
===================================================================
--- ctdb-1.0.89.orig/doc/ctdbd.1.html
+++ ctdb-1.0.89/doc/ctdbd.1.html
@@ -92,7 +92,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>
Index: ctdb-1.0.89/doc/ctdbd.1.xml
===================================================================
--- ctdb-1.0.89.orig/doc/ctdbd.1.xml
+++ ctdb-1.0.89/doc/ctdbd.1.xml
@@ -267,7 +267,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-1.0.89/include/ctdb_private.h
===================================================================
--- ctdb-1.0.89.orig/include/ctdb_private.h
+++ ctdb-1.0.89/include/ctdb_private.h
@@ -24,7 +24,7 @@
 #include <sys/socket.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
Index: ctdb-1.0.89/doc/ctdb.1.xml
===================================================================
--- ctdb-1.0.89.orig/doc/ctdb.1.xml
+++ ctdb-1.0.89/doc/ctdb.1.xml
@@ -111,7 +111,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
openSUSE Build Service is sponsored by