From 844a67c172ecd1070d96abbea0524972b2e39ba6 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 3 Jun 2009 13:26:30 +0000 Subject: [PATCH 1/1] don't try to 'kill' an empty pid / prevents warnings git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1711 9efc2488-bf62-4759-914b-345cdb29e865 --- bin/osrf_ctl.sh.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/osrf_ctl.sh.in b/bin/osrf_ctl.sh.in index 9b14865..74a20f2 100755 --- a/bin/osrf_ctl.sh.in +++ b/bin/osrf_ctl.sh.in @@ -120,8 +120,10 @@ function do_action { fi; while read pid; do - echo "Stopping $item process $pid..." - kill -s INT $pid + if [ -n "$pid" ]; then + echo "Stopping $item process $pid..." + kill -s INT $pid + fi; done < $pidfile; rm -f $pidfile; -- 2.43.2