Revert "examples: Avoid bashism in perfcount.init."
[jra/samba/.git] / examples / perfcounter / perfcountd.init
index 8a89fad2b51207abdae0c5cf6b6215f31fb21398..b82aea923097c7bfa5b05473c24c5dc2709f0fc6 100755 (executable)
@@ -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
 }