diff options
author | des <des@FreeBSD.org> | 2013-10-22 07:44:26 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-10-22 07:44:26 +0000 |
commit | 724e4bd0b043b264c4c2dfacc8cc9e7c318c223e (patch) | |
tree | 09deedd83c4cf8cb512372757a0468302dc7835d /etc | |
parent | 8963a6fe45a3435608617634ce4f42aaea5641cb (diff) | |
download | FreeBSD-src-724e4bd0b043b264c4c2dfacc8cc9e7c318c223e.zip FreeBSD-src-724e4bd0b043b264c4c2dfacc8cc9e7c318c223e.tar.gz |
Add a reload command.
Reviewed by: hrs
MFC after: 3 days
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/rtadvd | 6 |
1 files changed, 6 insertions, 0 deletions
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" |