3 # radsecproxy radsecproxy (secure radius proxy daemon)
7 # description: radsecproxy is a generic RADIUS proxy that in addition to to usual \
8 # RADIUS UDP transport, also supports TLS (RadSec). The aim is for the \
9 # proxy to have sufficient features to be flexible, while at the same \
10 # time to be small, efficient and easy to configure. Currently the \
11 # executable on Linux is only about 48 Kb, and it uses about 64 Kb \
12 # (depending on the number of peers) while running. \
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 . /etc/sysconfig/network
21 [ -f /etc/sysconfig/radsecproxy ] && . /etc/sysconfig/radsecproxy
23 # Check that networking is up.
24 if is_yes "${NETWORKING}"; then
25 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
26 msg_network_down radsecproxy
34 /usr/sbin/radsecproxy -p || exit 1
39 # Check if the service is already running?
40 if [ ! -f /var/lock/subsys/radsecproxy ]; then
41 msg_starting radsecproxy
42 daemon /usr/sbin/radsecproxy -i /var/run/radsecproxy.pid
44 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/radsecproxy
46 msg_already_running radsecproxy
51 if [ -f /var/lock/subsys/radsecproxy ]; then
52 msg_stopping radsecproxy
53 killproc --pidfile /var/run/radsecproxy.pid radsecproxy
54 rm -f /var/lock/subsys/radsecproxy >/dev/null 2>&1
56 msg_not_running radsecproxy
61 if [ -f /var/lock/subsys/radsecproxy ]; then
66 msg_not_running radsecproxy
72 # See how we were called.
89 if [ -f /var/lock/subsys/radsecproxy ]; then
91 msg_reloading radsecproxy
92 killproc radsecproxy -HUP
95 msg_not_running radsecproxy
104 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"