3 # gated This script is used to start/stop the gated routing
7 # description: Starts and stops gated (routing daemon). GateD is a modular \
8 # software program consisting of core services, a routing \
9 # database, and protocol modules supporting multiple routing \
10 # protocols (RIP versions 1 and 2, DCN HELLO, OSPF version 2, \
11 # EGP version 2 and BGP version 2 through 4)
13 # pidfile: /var/run/gated.pid
14 # config: /etc/gated.conf
16 # Source function library.
17 . /etc/rc.d/init.d/functions
19 # Source networking configuration.
20 . /etc/sysconfig/network
22 # Check that networking is up.
23 if is_yes "${NETWORKING}"; then
24 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
25 msg_network_down gated
34 [ -f /etc/gated.conf ] || exit 0
37 PATH=$PATH:/usr/bin:/usr/sbin
39 # See how we were called.
42 if [ ! -f /var/lock/subsys/gated ]; then
45 touch /var/lock/subsys/gated
47 msg_already_running gated
51 if [ -f /var/lock/subsys/gated ]; then
57 rm -f /var/lock/subsys/gated
59 msg_not_running gopherd
72 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"