5 # description: radvd is the router advertisement daemon for IPv6. It \
6 # listens to router solicitations and sends router \
7 # advertisements as described in "Neighbor Discovery for IP \
8 # Version 6 (IPv6)" (RFC 2461). With these advertisements \
9 # hosts can automatically configure their addresses and some \
10 # other parameters. They also can choose a default router \
11 # based on these advertisements.
14 # pidfile: /var/run/radvd.pid
15 # config: /etc/radvd.conf
16 # config: /etc/sysconfig/radvd
20 # Short-Description: router advertisement daemon for IPv6
23 # Source function library.
24 .
/etc
/rc.d
/init.d
/functions
27 .
/etc
/sysconfig
/network
29 [ -f /etc
/sysconfig
/radvd
] && .
/etc
/sysconfig
/radvd
33 LOCKFILE
=/var
/lock
/subsys
/radvd
35 # See how we were called.
38 if [ ! -f /etc
/radvd.conf
]; then
39 echo $
"Configuration file /etc/radvd.conf missing" 1>&2
42 if [ `id -u` -ne 0 ]; then
43 echo $
"Insufficient privilege" 1>&2
46 echo -n $
"Starting $PROG: "
50 if [ $RETVAL -eq 0 ]; then
53 if [ -f $LOCKFILE ]; then
59 echo -n $
"Stopping $PROG: "
63 [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
75 echo -n $
"Reloading $PROG: "
80 condrestart|try-restart
)
81 if [ -f $LOCKFILE ]; then
88 echo $
"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"