]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/bacula-ctl-fd.in
Tweak bacula-ctl scripts for valgrind
[bacula/bacula] / bacula / scripts / bacula-ctl-fd.in
index 86ad8db8db046576696aa218671e2c795664245e..3393ce633bfad690f3d19f0a4cb185b9c97ff2d4 100644 (file)
@@ -208,7 +208,11 @@ case "$1" in
            OPTIONS="${OPTIONS} -g ${FD_GROUP}"
         fi
 
-        ${BACFDBIN}/bacula-fd $2 $3 ${OPTIONS} -v -c ${BACFDCFG}/bacula-fd.conf
+        if [ "x${VALGRIND_FD}" = "x1" ]; then
+           valgrind --leak-check=full ${BACFDBIN}/bacula-fd $2 $3 ${OPTIONS} -v -c ${BACFDCFG}/bacula-fd.conf
+        else
+           ${BACFDBIN}/bacula-fd $2 $3 ${OPTIONS} -v -c ${BACFDCFG}/bacula-fd.conf
+        fi
       }
       ;;