make the initscript according to the LSB

This commit is contained in:
Jan F. Chadima 2009-09-24 14:11:48 +00:00
parent 1f75ca1537
commit edcf0e373f

View File

@ -38,7 +38,7 @@ lockfile=/var/lock/subsys/$prog
start() { start() {
[ -x $path ] || exit 5 [ -x $path ] || exit 5
echo -n $"Starting $prog: " echo -n $"Starting $prog: "
daemon $path -m $SOCKETDIR -a $MECH $FLAGS daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
RETVAL=$? RETVAL=$?
echo echo
[ $RETVAL -eq 0 ] && touch $lockfile [ $RETVAL -eq 0 ] && touch $lockfile
@ -98,12 +98,7 @@ case "$1" in
status) status)
rh_status rh_status
;; ;;
condrestart) condrestart|try-restart)
if [ -f /var/lock/subsys/$prog ]; then
restart
fi
;;
try-restart)
rh_status_q || exit 0 rh_status_q || exit 0
restart restart
;; ;;