]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/bacula-ctl-sd.in
Tweak bacula-ctl scripts for valgrind
[bacula/bacula] / bacula / scripts / bacula-ctl-sd.in
index 99ee11530b5738b5cfebcb7c72c36936f739f7a0..1f8592106a8988ffec8597cea9804f20bc5d6922 100644 (file)
@@ -208,7 +208,11 @@ case "$1" in
            OPTIONS="${OPTIONS} -g ${SD_GROUP}"
         fi
 
-        ${BACSDBIN}/bacula-sd $2 $3 ${OPTIONS} -v -c ${BACSDCFG}/bacula-sd.conf
+        if [ "x${VALGRIND_SD}" = "x1" ]; then
+           valgrind --leak-check=full ${BACSDBIN}/bacula-sd $2 $3 ${OPTIONS} -v -c ${BACSDCFG}/bacula-sd.conf
+        else
+           ${BACSDBIN}/bacula-sd $2 $3 ${OPTIONS} -v -c ${BACSDCFG}/bacula-sd.conf
+        fi
       }
       ;;