diff options
-rwxr-xr-x | examples/perfcounter/perfcountd.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/perfcounter/perfcountd.init b/examples/perfcounter/perfcountd.init index 8a89fad2b5..b82aea9230 100755 --- a/examples/perfcounter/perfcountd.init +++ b/examples/perfcounter/perfcountd.init @@ -24,7 +24,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin killproc() { pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'` - if [ -z "$pid" ]; then + if [ "$pid" != "" ]; then kill $pid fi } |