X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freeradius.init;h=8ba47e8ad5f1002edcd4989199651d06decfe32a;hb=bc58833b5493c7582a528cdabd1597b5f2c834ea;hp=be82138d20493fb467f4278c1dcb32cdf9b75b25;hpb=a56ba8312410ae3d499268b9c6e33a2b2907d27b;p=packages%2Ffreeradius.git diff --git a/freeradius.init b/freeradius.init index be82138..8ba47e8 100644 --- a/freeradius.init +++ b/freeradius.init @@ -1,7 +1,7 @@ #!/bin/sh # -# chkconfig: - 88 10 -# description: Start/Stop the RADIUS server daemon +# chkconfig: - 88 10 +# description: Start/Stop the RADIUS server daemon # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ . /etc/rc.d/init.d/functions RADIUSD=/usr/sbin/radiusd -LOCKF=/var/lock/subsys/radiusd +LOCKF=/var/lock/subsys/freeradius CONFIG=/etc/raddb/radiusd.conf [ -f "$RADIUSD" ] || exit 0 @@ -36,7 +36,7 @@ case "$1" in # Check if the service is already running? if [ ! -f "$LOCKF" ]; then msg_starting RADIUS - daemon "$RADIUSD" -y + daemon "$RADIUSD" RETVAL=$? [ $RETVAL -eq 0 ] && touch "$LOCKF" else @@ -63,7 +63,7 @@ case "$1" in killproc "$RADIUSD" -HUP RETVAL=$? else - msg_not_running RADIUS >&2 + msg_not_running RADIUS exit 7 fi ;;