]> git.pld-linux.org Git - packages/freeradius-server.git/commitdiff
- checkconfig added; start+stop=100
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 26 Nov 2008 11:28:52 +0000 (11:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    freeradius-server.init -> 1.2

freeradius-server.init

index 67507d852975f31d6bb6c9f31ad3019d2a465b86..92f518d4f3b2f48e1801e6bdb1e33d0e84e88550 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# chkconfig:   345 88 10
+# chkconfig:   345 88 12
 # description: Start/Stop the RADIUS server daemon
 #
 #    This program is free software; you can redistribute it and/or modify
 
 [ -f /etc/raddb/radiusd.conf ] || exit 0
 
+checkconfig() {
+       run_cmd "Checking RADIUS configuration " /usr/sbin/radiusd -C || exit 1
+}
+
 start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/freeradius ]; then
@@ -58,10 +62,12 @@ case "$1" in
        ;;
   status)
        status radiusd
+       checkconfig
        exit $?
        ;;
   reload)
        if [ -f /var/lock/subsys/freeradius ]; then
+               checkconfig
                msg_reloading RADIUS
                killproc /usr/sbin/radiusd -HUP
                RETVAL=$?
@@ -71,15 +77,17 @@ case "$1" in
        fi
        ;;
   restart|force-reload)
+       checkconfig
        stop
        sleep 3
        start
        ;;
   condrestart)
        if [ -f /var/lock/subsys/freeradius ]; then
-               $0 stop
+               checkconfig
+               stop
                sleep 3
-               $0 start
+               start
                RETVAL=$?
        fi
        ;;
This page took 0.134205 seconds and 4 git commands to generate.