svn commit: r256878 - head/etc/rc.d
Dag-Erling Smørgrav
des at FreeBSD.org
Tue Oct 22 07:44:26 UTC 2013
Author: des
Date: Tue Oct 22 07:44:26 2013
New Revision: 256878
URL: http://svnweb.freebsd.org/changeset/base/256878
Log:
Add a reload command.
Reviewed by: hrs
MFC after: 3 days
Modified:
head/etc/rc.d/rtadvd
Modified: head/etc/rc.d/rtadvd
==============================================================================
--- head/etc/rc.d/rtadvd Tue Oct 22 07:17:22 2013 (r256877)
+++ head/etc/rc.d/rtadvd Tue Oct 22 07:44:26 2013 (r256878)
@@ -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"
More information about the svn-src-head
mailing list