          echo "User has insufficient privilege."
          exit 4
      fi
--    echo -n $"Stopping pScheduler $prog: "
++    log_daemon_msg "Stopping pScheduler $prog" "pscheduler-$prog"
+     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) || failure "Stopping pScheduler $prog"
++        sleep 3
++        kill -9 $(cat $pidfile) 2> /dev/null || :
 +        rm -f $pidfile
 +    fi
      retval=$?

 }
 
 restart()
@@ -80,8 +78,6 @@
     start
 }
 

 case "$1" in
     start)
         $1
@@ -91,11 +88,11 @@
     stop)
         $1
         ;;
