--- perfcountd.init.old 2008-12-29 11:04:47.184052865 +0100 +++ perfcountd.init 2008-12-29 11:05:23.726435814 +0100 @@ -47,7 +47,7 @@ status) pid=`ps aux | grep perfcount | egrep -v '(grep|perfcountd)' | awk '{print $2}'` - if [ "$pid" == "" ]; then + if [ -z "$pid" ]; then echo "Dead!" exit 2; fi