git.samba.org
/
jra
/
samba
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "examples: Avoid bashism in perfcount.init."
[jra/samba/.git]
/
examples
/
perfcounter
/
perfcountd.init
diff --git
a/examples/perfcounter/perfcountd.init
b/examples/perfcounter/perfcountd.init
index 8a89fad2b51207abdae0c5cf6b6215f31fb21398..b82aea923097c7bfa5b05473c24c5dc2709f0fc6 100755
(executable)
--- 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
}