Add a reload command.
Reviewed by: hrs MFC after: 3 days
This commit is contained in:
parent
0be7f787bb
commit
c614125e67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256878
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user