Revert "examples: Avoid bashism in perfcount.init."
authorKarolin Seeger <kseeger@samba.org>
Mon, 5 Jan 2009 15:38:25 +0000 (16:38 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Jan 2009 15:38:25 +0000 (16:38 +0100)
This reverts commit 744c7007b4b798699613e06933f92fdf5261b222.

examples/perfcounter/perfcountd.init

index 7d151f6e8e5294c1b0a2027dbb27e1f6f2340f1e..bb4148e52f62d8053313e32630de4e2587e461bd 100755 (executable)
 
 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