From 9beee940edb26220cfaf46a7af37586bdc24fdac Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 9 Jan 2010 17:33:23 +0100 Subject: [PATCH] Minor tweak of start/stop scripts that may fix some problems --- bacula/scripts/bacula-ctl-dir.in | 3 ++- bacula/scripts/bacula-ctl-fd.in | 3 ++- bacula/scripts/bacula-ctl-sd.in | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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 } -- 2.39.5