 -    echo -n $"Stopping pScheduler $prog: "
 -        if [ -s "$pidfile" ]; then
 -	    kill $(cat $pidfile) || failure "Stopping pScheduler $prog"
--	    sleep 3
--	    kill -9 $(cat $pidfile) 2> /dev/null || :
 -	    rm -f $pidfile
 -	fi
 +    log_daemon_msg "Stopping pScheduler $prog" "pscheduler-$prog"
 +    if [ -s "$pidfile" ]; then
 +        kill $(cat $pidfile)
-+        sleep 3
-+        kill -9 $(cat $pidfile) 2> /dev/null || :
 +        rm -f $pidfile
 +    fi
      retval=$?

 }
 
 restart()
@@ -89,18 +87,17 @@
     start
 }
 

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