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:
cf6c6d3
)
examples: Avoid bashism in perfcount.init.
author
Karolin Seeger
<kseeger@samba.org>
Mon, 5 Jan 2009 15:33:00 +0000
(16:33 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 12 Jan 2009 09:12:04 +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
2e09746a4db4186c9d648370b9004971bc18e5c9
)
(cherry picked from commit
9b17f7907bca32282d6e56fa28ca62ef84bf7afc
)
(cherry picked from commit
de41f0e9a08b796873bdd319fe784b6c90e28b23
)
(cherry picked from commit
e5e8a4a6fa866a23377d0a92eff433b59abfcebe
)
examples/perfcounter/perfcountd.init
patch
|
blob
|
history
diff --git
a/examples/perfcounter/perfcountd.init
b/examples/perfcounter/perfcountd.init
index bb4148e52f62d8053313e32630de4e2587e461bd..f376981ca2e89bd0024c2ee46e1441eabeb76ac4 100755
(executable)
--- a/
examples/perfcounter/perfcountd.init
+++ b/
examples/perfcounter/perfcountd.init
@@
-25,14
+25,14
@@
PATH=/bin:/usr/bin:/sbin:/usr/sbin
killproc()
{
pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
- if [
"$pid" != "
" ]; then
+ if [
x"$pid" != "x
" ]; then
kill $pid
fi
}
# Start/stop processes
-case "$1"
+case "$1"
in
start)
/opt/samba/bin/perfcount -d -f /var/lib/samba/perfmon 2> /dev/null
@@
-48,7
+48,7
@@
stop)
status)
pid=`ps aux | grep perfcount | egrep -v '(grep|perfcountd)' | awk '{print $2}'`
- if [
"$pid" == "
" ]; then
+ if [
x"$pid" = "x
" ]; then
echo "Dead!"
exit 2;
fi