]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/devel_bacula.in
Fix bat seg fault
[bacula/bacula] / bacula / scripts / devel_bacula.in
index 9b833bb1fa08cc8dc447243e564853c846e51cf7..4357394a46c4e03eaf034b8ec20b9d13bc8a6d0a 100755 (executable)
@@ -9,7 +9,7 @@
 #   This is pretty much watered down version of the RedHat script
 #   that works on Solaris as well as Linux, but it won't work everywhere.
 #
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
 #
 
 PSCMD="@PSCMD@"
@@ -230,7 +230,11 @@ case "$1" in
             OPTIONS="${OPTIONS} -g ${DIR_GROUP}"
          fi
 
-         ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/dird.conf
+         if [ "${VALGRIND}" != '' ]; then
+            valgrind --leak-check=full ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/dird.conf
+         else
+            ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/dird.conf
+         fi
        }
        ;;