File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -777,15 +777,17 @@ _check_started()
777
777
778
778
# check ${IAM} really stopped
779
779
#
780
- # $1 = dir as it appears on the $PCP_TMP_DIR/${IAM} files (so a real path,
780
+ # $1 = host
781
+ # $2 = dir as it appears on the $PCP_TMP_DIR/${IAM} files (so a real path,
781
782
# not a possibly symbolic path from a control file)
782
- # $2 = args from control file
783
+ # $3 = args from control file
783
784
#
784
785
_check_stopped ()
785
786
{
786
787
$SHOWME && return 0
787
- dir=" $1 "
788
- args=" $2 "
788
+ host=" $1 "
789
+ dir=" $2 "
790
+ args=" $3 "
789
791
max=50 # 1/10 of a second, so 5 secs max
790
792
i=0
791
793
$VERY_VERBOSE && $PCP_ECHO_PROG >&2 $PCP_ECHO_N " Stopped? " " $PCP_ECHO_C "
@@ -1849,7 +1851,7 @@ _do_stop()
1849
1851
#
1850
1852
$VERBOSE && echo >&2 " Found PID $__pid to stop using signal ${PCPQA_KILL_SIGNAL-TERM} "
1851
1853
$KILL ${PCPQA_KILL_SIGNAL-TERM} $__pid
1852
- if _check_stopped " $__args_dir " " $__args "
1854
+ if _check_stopped " $__host " " $ __args_dir" " $__args "
1853
1855
then
1854
1856
:
1855
1857
elif [ -z " $PCPQA_KILL_SIGNAL " ]
@@ -1858,7 +1860,7 @@ _do_stop()
1858
1860
#
1859
1861
$VERBOSE && echo >&2 " That didn't work, try using signal KILL"
1860
1862
$KILL KILL $__pid
1861
- if _check_stopped " $__args_dir " " $__args "
1863
+ if _check_stopped " $__host " " $ __args_dir" " $__args "
1862
1864
then
1863
1865
:
1864
1866
else
You can’t perform that action at this time.
0 commit comments