X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fscripts%2Fdevel_bacula.in;h=4357394a46c4e03eaf034b8ec20b9d13bc8a6d0a;hb=10ee9d810f331ba9aa335d31d3d6e2573615c6cd;hp=9b833bb1fa08cc8dc447243e564853c846e51cf7;hpb=5ba42ee1ede8edf9858ee58f945d7f4ed73bb897;p=bacula%2Fbacula diff --git a/bacula/scripts/devel_bacula.in b/bacula/scripts/devel_bacula.in index 9b833bb1fa..4357394a46 100755 --- a/bacula/scripts/devel_bacula.in +++ b/bacula/scripts/devel_bacula.in @@ -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 } ;;