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
25 # Check that networking is up.
26 if is_yes "${NETWORKING}"; then
27 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
28 msg_network_down radsecproxy
36 /usr/sbin/radsecproxy -p || exit 1
41 # Check if the service is already running?
42 if [ ! -f /var/lock/subsys/radsecproxy ]; then
43 msg_starting radsecproxy
44 daemon --pidfile /var/run/radsecproxy.pid /usr/sbin/radsecproxy
46 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/radsecproxy
48 msg_already_running radsecproxy
53 if [ -f /var/lock/subsys/radsecproxy ]; then
54 msg_stopping radsecproxy
55 killproc --pidfile /var/run/radsecproxy.pid radsecproxy
56 rm -f /var/lock/subsys/radsecproxy >/dev/null 2>&1
58 msg_not_running radsecproxy
63 if [ -f /var/lock/subsys/radsecproxy ]; then
68 msg_not_running radsecproxy
74 # See how we were called.
91 if [ -f /var/lock/subsys/radsecproxy ]; then
93 msg_reloading radsecproxy
94 killproc radsecproxy -HUP
97 msg_not_running radsecproxy
106 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"