make the initscript according to the LSB
This commit is contained in:
parent
1f75ca1537
commit
edcf0e373f
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user