          $1
          ;;
  
-@@ -93,7 +91,7 @@
+     status)
+-        status -p ${pidfile} $exec
++        status_of_proc -p ${pidfile} $exec "pscheduler-$prog"
          ;;
  
      *)

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

 }
 
 restart()
@@ -82,18 +80,17 @@
     start
 }
 
