summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2009-01-05 16:35:50 +0100
committerKarolin Seeger <kseeger@samba.org>2009-01-05 16:35:50 +0100
commitf7d2e48c6e79983928c126e6d2d9fa3f295a765e (patch)
tree9fa53ea701f33f6e4abaf4d854e73057d793bb13 /examples
parent84ef55b65f6b3a877da98ace762e5ec3d784fa4d (diff)
downloadsamba-f7d2e48c6e79983928c126e6d2d9fa3f295a765e.tar.gz
Revert "examples: Avoid bashism in perfcount.init."
This reverts commit a1bf1f1819ab184682327583d05b0258db8856ef.
Diffstat (limited to 'examples')
-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 8a89fad2b51..683e91395b1 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 [ -z "$pid" ]; then
+ if [ "$pid" != "" ]; then
kill $pid
fi
}
-# Start/stop processes
+# Start/stop processes
case "$1"
in