]> git.pld-linux.org Git - packages/freeradius.git/blobdiff - freeradius.init
- use /sbin/service
[packages/freeradius.git] / freeradius.init
index be82138d20493fb467f4278c1dcb32cdf9b75b25..8ba47e8ad5f1002edcd4989199651d06decfe32a 100644 (file)
@@ -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
        ;;
This page took 0.213316 seconds and 4 git commands to generate.