summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/rtsold
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2010-02-03 16:18:42 +0000
committerume <ume@FreeBSD.org>2010-02-03 16:18:42 +0000
commit0b55670b9d71a9fa67a6f45a0e56ad67c615550d (patch)
tree647a6ac93e4300c39d9f1814eccb039cfcda217d /etc/rc.d/rtsold
parent36b8bef13cd6d4e55f86bf271e1e64c417577f7c (diff)
downloadFreeBSD-src-0b55670b9d71a9fa67a6f45a0e56ad67c615550d.zip
FreeBSD-src-0b55670b9d71a9fa67a6f45a0e56ad67c615550d.tar.gz
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
Diffstat (limited to 'etc/rc.d/rtsold')
-rwxr-xr-xetc/rc.d/rtsold26
1 files changed, 26 insertions, 0 deletions
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"
OpenPOWER on IntegriCloud