From: Karolin Seeger Date: Mon, 5 Jan 2009 15:30:10 +0000 (+0100) Subject: Revert "examples: Avoid bashism in perfcount.init." X-Git-Tag: samba-4.0.0alpha6~280^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=997f0fdaddfa4cd433dc13de33f780c4672872de;p=thirdparty%2Fsamba.git Revert "examples: Avoid bashism in perfcount.init." This reverts commit 73875cd344608b591fa884ab99b5f3a10550c149. --- diff --git a/examples/perfcounter/perfcountd.init b/examples/perfcounter/perfcountd.init index 8a89fad2b51..b82aea92309 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 }