Displaying 1 result from an estimated 1 matches for "killlock".
2010 Nov 10
1
Init.d script troubleshooting.
...n -c "./nctrl stop"
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/fast
echo
return $RETVAL
}
status() {
cd ${BIN}
su fastadmin -c "./nctrl status"
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
killlock)
if [ -f /var/lock/subsys/fast ]; then
rm -f /var/lock/subsys/fast
fi
;;
status)
status
;;
*)
echo $"Usage: $0 {start|stop|restart|killlock|status}"
exit 1
esac
exit $RETVAL
--
Don Krause
-------------- n...