summaryrefslogtreecommitdiff
path: root/examples/perfcounter
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2009-01-05 16:30:10 +0100
committerKarolin Seeger <kseeger@samba.org>2009-01-05 16:34:05 +0100
commit997f0fdaddfa4cd433dc13de33f780c4672872de (patch)
tree2926d70b9d0094c96f0476770fe970658dc7223d /examples/perfcounter
parent01891782fd247c57f0ecd79ed9adf618108c5fac (diff)
downloadsamba-997f0fdaddfa4cd433dc13de33f780c4672872de.tar.gz
Revert "examples: Avoid bashism in perfcount.init."
This reverts commit 73875cd344608b591fa884ab99b5f3a10550c149.
Diffstat (limited to 'examples/perfcounter')
-rwxr-xr-xexamples/perfcounter/perfcountd.init2
1 files changed, 1 insertions, 1 deletions
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
}