      if [ ! -s "$logfile" ] ; then
          echo "(This file should be empty unless there's a catastrophic failure.)" >> "$logfile"
      fi
-@@ -54,26 +55,24 @@
+@@ -54,26 +55,23 @@
         -c "$exec --daemon --pid-file '$pidfile' --dsn '@$config'" \
  	>> "$logfile" 2>&1 &
      retval=$?

 }
 
 restart()
@@ -82,9 +81,8 @@
     start
 }
 

         $1
         ;;
 
     status)
-        status -p ${pidfile} $exec
+        status_of_proc -p ${pidfile} $exec "pscheduler-$prog"
         ;;
 
     *)
