mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
update net/radvd to improve startup script
- rc script now accepts arbitrary config file path PR: 206237 Submitted by: Daniel Ylitalo <daniel@blodan.se> Approved by: bapt Differential Revision: https://reviews.freebsd.org/D6371
This commit is contained in:
parent
00e80e4720
commit
8c89ad7870
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415207
@ -16,10 +16,13 @@ rcvar=radvd_enable
|
||||
|
||||
pidfile=/var/run/${name}.pid
|
||||
command="%%PREFIX%%/sbin/${name}"
|
||||
command_args="-p ${pidfile}"
|
||||
required_files="%%PREFIX%%/etc/${name}.conf"
|
||||
|
||||
load_rc_config $name
|
||||
: ${radvd_enable="NO"}
|
||||
: ${radvd_config="%%PREFIX%%/etc/${name}.conf"}
|
||||
|
||||
required_files="${radvd_config}"
|
||||
|
||||
command_args="-p ${pidfile} -C ${radvd_config}"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user