summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2009-01-05 14:54:28 +0100
committerKarolin Seeger <kseeger@samba.org>2009-01-05 14:54:28 +0100
commit73875cd344608b591fa884ab99b5f3a10550c149 (patch)
tree5351ef13b24a410c95e20a1532860a2dc292b02d
parent6752d78e946b2c4278e2deba325c76fb7ffbc06a (diff)
downloadsamba-73875cd344608b591fa884ab99b5f3a10550c149.tar.gz
samba-73875cd344608b591fa884ab99b5f3a10550c149.tar.bz2
samba-73875cd344608b591fa884ab99b5f3a10550c149.zip
examples: Avoid bashism in perfcount.init.
This fixes bug #6000. Thanks to the Debian Samba package maintainers for providing the patch! Remove trailing whitespaces. Karolin
-rwxr-xr-xexamples/perfcounter/perfcountd.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/perfcounter/perfcountd.init b/examples/perfcounter/perfcountd.init
index 683e91395b..8a89fad2b5 100755
--- 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 [ "$pid" != "" ]; then
+ if [ -z "$pid" ]; then
kill $pid
fi
}
-# Start/stop processes
+# Start/stop processes
case "$1"
in