]> git.sur5r.net Git - bacula/bacula/commitdiff
Allow Dir to come up before use
authorKern Sibbald <kern@sibbald.com>
Sun, 6 Dec 2009 17:06:27 +0000 (18:06 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 6 Dec 2009 17:06:27 +0000 (18:06 +0100)
bacula/scripts/bacula-ctl-dir.in

index 4282eb7bdf7bdb1a0f3ef3ed7dcc2228e60d5e40..1cd22eae9f429e2f26a8c73bd02bab29dba33853 100644 (file)
@@ -197,7 +197,6 @@ fi
 case "$1" in
    start)
       [ -x ${BACDIRBIN}/bacula-dir ] && { 
-         sleep 2
          echo "Starting the $Bacula Director daemon"
         OPTIONS=''
         if [ "${DIR_USER}" != '' ]; then
@@ -213,6 +212,7 @@ case "$1" in
         else
            ${BACDIRBIN}/bacula-dir $2 $3 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
         fi
+        sleep 1
       }
       ;;