[Pkg-samba-maint] r1877 - trunk/ctdb/debian
    mparent-guest at alioth.debian.org 
    mparent-guest at alioth.debian.org
       
    Tue May 20 16:51:39 UTC 2008
    
    
  
Author: mparent-guest
Date: 2008-05-20 16:51:39 +0000 (Tue, 20 May 2008)
New Revision: 1877
Modified:
   trunk/ctdb/debian/ctdb.init
Log:
Applied commit http://git.samba.org/?p=sahlberg/ctdb.git;a=commitdiff;h=d32b16a4e5ecc31563c6f2767e7d483f3d980284:
Fix a cosmetic and annoying warning message when running "service ctdb start" and supress printing out that "warning your ls command to find the persistent databases didnt find any" ...
Modified: trunk/ctdb/debian/ctdb.init
===================================================================
--- trunk/ctdb/debian/ctdb.init	2008-05-20 01:04:12 UTC (rev 1876)
+++ trunk/ctdb/debian/ctdb.init	2008-05-20 16:51:39 UTC (rev 1877)
@@ -116,7 +116,8 @@
         [ -z "$CTDB_DBDIR" ] || {
                 PERSISTENT_DB_DIR="$CTDB_DBDIR/persistent"
         }
-        for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9]`; do
+        mkdir -p $PERSISTENT_DB_DIR 2>/dev/null
+	for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9] 2>/dev/null`; do
                 /usr/bin/tdbdump $PDBASE >/dev/null 2>/dev/null || {
                         echo "Persistent database $PDBASE is corrupted! CTDB will not start."
                         return 1
    
    
More information about the Pkg-samba-maint
mailing list