Add debug option
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 6 Sep 2012 08:58:19 +0000 (10:58 +0200)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 6 Sep 2012 09:03:40 +0000 (10:03 +0100)
debian/freeradius.init

index 528d6cc..bc0a486 100755 (executable)
@@ -61,14 +61,14 @@ case "$1" in
                 log_end_msg $ret
                 ;;
 
-        restart)
+        restart|force-reload)
                 test_freeradius_config || exit $?
 
                 $0 stop
                 $0 start
                 ;;
 
-        reload|force-reload)
+        reload)
                 test_freeradius_config || exit $?
 
                 if status_of_proc -p "$PIDFILE" "$PROG" "$DESCR"; then
@@ -82,8 +82,13 @@ case "$1" in
         configtest|testconfig)
                 test_freeradius_config || exit $?
                 ;;
+
+        debug)
+                $PROGRAM -X $FREERADIUS_OPTIONS
+                ;;
+
         *)
-                echo "Usage: $0 start|stop|restart|force-reload|reload|configtest"
+                echo "Usage: $0 start|stop|restart|force-reload|reload|configtest|debug"
                 exit 1
                 ;;
 esac