examples: Avoid bashism in perfcount.init.
authorKarolin Seeger <kseeger@samba.org>
Mon, 5 Jan 2009 13:54:28 +0000 (14:54 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Jan 2009 13:54:28 +0000 (14:54 +0100)
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.

Karolin

examples/perfcounter/perfcountd.init

index 683e91395b1558d6ae4f74305cc9a6404e4dd3ae..8a89fad2b51207abdae0c5cf6b6215f31fb21398 100755 (executable)
 
 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