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:
901ac11
)
examples: Avoid bashism in perfcount.init.
author
Karolin Seeger
<kseeger@samba.org>
Mon, 5 Jan 2009 13:54:28 +0000
(14:54 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 12 Jan 2009 09:12:03 +0000
(10:12 +0100)
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.
Karolin
(cherry picked from commit
73875cd344608b591fa884ab99b5f3a10550c149
)
(cherry picked from commit
e273c07e94ee607bbf05b6fa66cf3cea13fe4502
)
(cherry picked from commit
a1bf1f1819ab184682327583d05b0258db8856ef
)
(cherry picked from commit
b4ffffc5c03b69ac2f8e0ed74fd7788549f7e822
)
(cherry picked from commit
744c7007b4b798699613e06933f92fdf5261b222
)
examples/perfcounter/perfcountd.init
patch
|
blob
|
history
diff --git
a/examples/perfcounter/perfcountd.init
b/examples/perfcounter/perfcountd.init
index bb4148e52f62d8053313e32630de4e2587e461bd..7d151f6e8e5294c1b0a2027dbb27e1f6f2340f1e 100755
(executable)
--- a/
examples/perfcounter/perfcountd.init
+++ b/
examples/perfcounter/perfcountd.init
@@
-22,15
+22,15
@@
PATH=/bin:/usr/bin:/sbin:/usr/sbin
-killproc()
+killproc()
{
pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
- if [
"$pid" != "
" ]; then
+ if [
-z "$pid
" ]; then
kill $pid
fi
}
-# Start/stop processes
+# Start/stop processes
case "$1"
in