From: Kern Sibbald Date: Sat, 9 Jan 2010 16:33:23 +0000 (+0100) Subject: Minor tweak of start/stop scripts that may fix some problems X-Git-Tag: Release-7.0.0~2406 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05e072651ae14c7b34cff17dba6330b184c9b2ff;p=bacula%2Fbacula Minor tweak of start/stop scripts that may fix some problems --- diff --git a/bacula/scripts/bacula-ctl-dir.in b/bacula/scripts/bacula-ctl-dir.in index 1cd22eae9f..0eb28d9a72 100644 --- a/bacula/scripts/bacula-ctl-dir.in +++ b/bacula/scripts/bacula-ctl-dir.in @@ -128,7 +128,8 @@ pidofproc() { fi # Finally try to extract it from ps - ${PSCMD} | grep $1 | ${AWK} '{ print $1 }' | tr '\n' ' ' + pid=`${PSCMD} | grep $1 | ${AWK} '{ print $1 }' | tr '\n' ' '` + echo $pid return 0 } diff --git a/bacula/scripts/bacula-ctl-fd.in b/bacula/scripts/bacula-ctl-fd.in index 093797eb74..538c3a5398 100644 --- a/bacula/scripts/bacula-ctl-fd.in +++ b/bacula/scripts/bacula-ctl-fd.in @@ -128,7 +128,8 @@ pidofproc() { fi # Finally try to extract it from ps - ${PSCMD} | grep $1 | ${AWK} '{ print $1 }' | tr '\n' ' ' + pid=`${PSCMD} | grep $1 | ${AWK} '{ print $1 }' | tr '\n' ' '` + echo $pid return 0 } diff --git a/bacula/scripts/bacula-ctl-sd.in b/bacula/scripts/bacula-ctl-sd.in index 9046f5b8fb..68e520fbd8 100644 --- a/bacula/scripts/bacula-ctl-sd.in +++ b/bacula/scripts/bacula-ctl-sd.in @@ -128,7 +128,8 @@ pidofproc() { fi # Finally try to extract it from ps - ${PSCMD} | grep $1 | ${AWK} '{ print $1 }' | tr '\n' ' ' + pid=`${PSCMD} | grep $1 | ${AWK} '{ print $1 }' | tr '\n' ' '` + echo $pid return 0 }