]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/packages/frr
2 ########################################################################
3 # Begin $rc_base/init.d/frr
5 # Description : FRRouting Suite
7 ########################################################################
12 DAEMONS
="zebra bgpd ospfd staticd"
16 # Fix permissions of configuration directory
17 if [ -d "/etc/frr" ]; then
18 chown root.frr
/etc
/frr
22 for daemon
in ${DAEMONS}; do
23 if [ -f "/etc/frr/${daemon}.conf" ]; then
25 chown frr.frr
"/etc/frr/${daemon}.conf"
27 boot_mesg
"Starting FRRouting ${daemon}..."
28 loadproc
"/usr/sbin/${daemon}" --daemon
34 for daemon
in ${DAEMONS}; do
35 boot_mesg
"Stopping FRRouting ${daemon}..."
36 killproc
"/usr/sbin/${daemon}"
41 boot_mesg
"Reloading FRRouting..."
42 reloadproc
/usr
/sbin
/frr-reload
52 for daemon
in ${DAEMONS}; do
53 statusproc
"/usr/sbin/${daemon}"
58 echo "Usage: ${0} {start|stop|reload|restart|status}"
63 # End $rc_base/init.d/frr