git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39f3af9
)
Revert "examples: Avoid bashism in perfcount.init."
author
Karolin Seeger
<kseeger@samba.org>
Mon, 5 Jan 2009 15:35:11 +0000
(16:35 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 5 Jan 2009 15:35:11 +0000
(16:35 +0100)
This reverts commit
e273c07e94ee607bbf05b6fa66cf3cea13fe4502
.
examples/perfcounter/perfcountd.init
patch
|
blob
|
history
diff --git
a/examples/perfcounter/perfcountd.init
b/examples/perfcounter/perfcountd.init
index 8a89fad2b51207abdae0c5cf6b6215f31fb21398..683e91395b1558d6ae4f74305cc9a6404e4dd3ae 100755
(executable)
--- a/
examples/perfcounter/perfcountd.init
+++ b/
examples/perfcounter/perfcountd.init
@@
-21,15
+21,15
@@
PATH=/bin:/usr/bin:/sbin:/usr/sbin
-killproc()
+killproc()
{
pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
- if [
-z "$pid
" ]; then
+ if [
"$pid" != "
" ]; then
kill $pid
fi
}
-# Start/stop processes
+# Start/stop processes
case "$1"
in