3 # $Id: radvd.init,v 1.7 2010/03/05 12:14:47 psavola Exp $
6 # description: radvd is the router advertisement daemon for IPv6. It \
7 # listens to router solicitations and sends router \
8 # advertisements as described in "Neighbor Discovery for IP \
9 # Version 6 (IPv6)" (RFC 2461). With these advertisements \
10 # hosts can automatically configure their addresses and some \
11 # other parameters. They also can choose a default router \
12 # based on these advertisements.
15 # pidfile: /var/run/radvd.pid
16 # config: /etc/radvd.conf
17 # config: /etc/sysconfig/radvd
21 # Short-Description: router advertisement daemon for IPv6
24 # Source function library.
25 .
/etc
/rc.d
/init.d
/functions
28 .
/etc
/sysconfig
/network
30 [ -f /etc
/sysconfig
/radvd
] && .
/etc
/sysconfig
/radvd
34 LOCKFILE
=/var
/lock
/subsys
/radvd
36 # See how we were called.
39 if [ ! -f /etc
/radvd.conf
]; then
40 echo $
"Configuration file /etc/radvd.conf missing" 1>&2
43 if [ `id -u` -ne 0 ]; then
44 echo $
"Insufficient privilege" 1>&2
47 echo -n $
"Starting $PROG: "
51 if [ $RETVAL -eq 0 ]; then
54 if [ -f $LOCKFILE ]; then
60 echo -n $
"Stopping $PROG: "
64 [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
76 echo -n $
"Reloading $PROG: "
81 condrestart|try-restart
)
82 if [ -f $LOCKFILE ]; then
89 echo $
"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"