Revert "examples: Avoid bashism in perfcount.init."
authorKarolin Seeger <kseeger@samba.org>
Mon, 5 Jan 2009 15:37:01 +0000 (16:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 28 Jan 2009 08:39:56 +0000 (09:39 +0100)
This reverts commit b4ffffc5c03b69ac2f8e0ed74fd7788549f7e822.
(cherry picked from commit fbee9f20b30a426d5c336066522d047a504914b9)

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
 }