summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2014-02-27 13:19:17 +0000
committerdes <des@FreeBSD.org>2014-02-27 13:19:17 +0000
commit7c18ea990f9a248522fe52605c36b317cbf39375 (patch)
tree71a54bc3e439380ee77195c04c2f046a4dd62e4a
parent0af7d6ff77481936f625eec37b1a5bc793fae4de (diff)
downloadFreeBSD-src-7c18ea990f9a248522fe52605c36b317cbf39375.zip
FreeBSD-src-7c18ea990f9a248522fe52605c36b317cbf39375.tar.gz
MFH (r256875): start rtsold if necessary
MFH (r256878): add a reload command
-rwxr-xr-xetc/netstart1
-rwxr-xr-xetc/rc.d/rtadvd6
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/netstart b/etc/netstart
index 885932d..44b8ab7 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -59,6 +59,7 @@ _start=quietstart
/etc/rc.d/route6d ${_start}
/etc/rc.d/mrouted ${_start}
/etc/rc.d/routed ${_start}
+/etc/rc.d/rtsold ${_start}
/etc/rc.d/nisdomain ${_start}
exit 0
diff --git a/etc/rc.d/rtadvd b/etc/rc.d/rtadvd
index 562498c..732e127 100755
--- a/etc/rc.d/rtadvd
+++ b/etc/rc.d/rtadvd
@@ -14,6 +14,8 @@
name="rtadvd"
rcvar="rtadvd_enable"
command="/usr/sbin/${name}"
+extra_commands="reload"
+reload_cmd="rtadvd_reload"
start_precmd="rtadvd_precmd"
rtadvd_precmd()
@@ -62,5 +64,9 @@ rtadvd_precmd()
return 0
}
+rtadvd_reload() {
+ /usr/sbin/rtadvctl reload
+}
+
load_rc_config $name
run_rc_command "$1"
OpenPOWER on IntegriCloud