freebsd-dev/etc/rc.d/rtsold
Hajimu UMEMOTO e60d067996 Add rc.d script for the rtsold(8) daemon.
The rtsol(8) handles just one RA then exit.  So, the OtherConfig flag
may not be handled well by rtsol(8) in the environment where there are
multiple RA servers on the segment.  In such case, rtsold(8) will be
your friend.

Reviewed by:	hrs
MFC after:	2 weeks
2010-02-03 16:18:42 +00:00

27 lines
379 B
Bash
Executable File

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: rtsold
# REQUIRE: netif
# BEFORE: NETWORKING
# KEYWORD: nojail
. /etc/rc.subr
name="rtsold"
rcvar=`set_rcvar`
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
start_postcmd="rtsold_poststart"
rtsold_poststart()
{
# wait for DAD
sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1))
}
load_rc_config $name
run_rc_command "$1"