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