]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/devel_bacula.in
kes Implement --without-qwt
[bacula/bacula] / bacula / scripts / devel_bacula.in
index 9b833bb1fa08cc8dc447243e564853c846e51cf7..4a68501db282d2e69e4b27ba7c3290ba46241006 100755 (executable)
@@ -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
        }
        ;;