diff options
author | Karolin Seeger <kseeger@samba.org> | 2009-01-05 16:30:10 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-01-05 16:34:05 +0100 |
commit | 997f0fdaddfa4cd433dc13de33f780c4672872de (patch) | |
tree | 2926d70b9d0094c96f0476770fe970658dc7223d /examples | |
parent | 01891782fd247c57f0ecd79ed9adf618108c5fac (diff) | |
download | samba-997f0fdaddfa4cd433dc13de33f780c4672872de.tar.gz samba-997f0fdaddfa4cd433dc13de33f780c4672872de.tar.bz2 samba-997f0fdaddfa4cd433dc13de33f780c4672872de.zip |
Revert "examples: Avoid bashism in perfcount.init."
This reverts commit 73875cd344608b591fa884ab99b5f3a10550c149.
Diffstat (limited to 'examples')
-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 } |