diff options
author | ume <ume@FreeBSD.org> | 2010-02-27 18:19:13 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2010-02-27 18:19:13 +0000 |
commit | e32ada9eaa2bbd6019da71f7bd36aa20a7fa3e9e (patch) | |
tree | 6aed5456160d7abd6f67f84d4c453c4c2bf96116 /etc/rc.d | |
parent | 5a901fd0058983c478d4646ade996cbd0e814074 (diff) | |
download | FreeBSD-src-e32ada9eaa2bbd6019da71f7bd36aa20a7fa3e9e.zip FreeBSD-src-e32ada9eaa2bbd6019da71f7bd36aa20a7fa3e9e.tar.gz |
MFC r203433:
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.
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/Makefile | 2 | ||||
-rwxr-xr-x | etc/rc.d/rtsold | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index 110f3d7..49010e5 100755 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -30,7 +30,7 @@ FILES= DAEMON FILESYSTEMS LOGIN NETWORKING SERVERS \ powerd power_profile ppp pppoed pwcheck \ quota \ random rarpd resolv rfcomm_pppd_server root \ - route6d routed routing rpcbind rtadvd rwho \ + route6d routed routing rpcbind rtadvd rtsold rwho \ savecore sdpd securelevel sendmail \ serial sppp statd static_arp swap1 \ syscons sysctl syslogd \ diff --git a/etc/rc.d/rtsold b/etc/rc.d/rtsold new file mode 100755 index 0000000..bbecebb --- /dev/null +++ b/etc/rc.d/rtsold @@ -0,0 +1,26 @@ +#!/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" |