From: erickson Date: Wed, 3 Jun 2009 13:26:30 +0000 (+0000) Subject: don't try to 'kill' an empty pid / prevents warnings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=844a67c172ecd1070d96abbea0524972b2e39ba6;p=working%2FOpenSRF.git 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 --- 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;