diff options
author | farrokhi <farrokhi@FreeBSD.org> | 2016-05-15 11:11:32 +0800 |
---|---|---|
committer | farrokhi <farrokhi@FreeBSD.org> | 2016-05-15 11:11:32 +0800 |
commit | 2ccbbddfa4b549e49a794e46fcf19ca279205931 (patch) | |
tree | 6b68bd734069c897ab082edf3cc1b41b7eff4b9d /net/radvd | |
parent | 249c47235920d22065403953679d329b131beba4 (diff) | |
download | freebsd-ports-gnome-2ccbbddfa4b549e49a794e46fcf19ca279205931.tar.gz freebsd-ports-gnome-2ccbbddfa4b549e49a794e46fcf19ca279205931.tar.zst freebsd-ports-gnome-2ccbbddfa4b549e49a794e46fcf19ca279205931.zip |
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
Diffstat (limited to 'net/radvd')
-rw-r--r-- | net/radvd/files/radvd.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/radvd/files/radvd.in b/net/radvd/files/radvd.in index 7b626140a996..4796f9fc17cc 100644 --- a/net/radvd/files/radvd.in +++ b/net/radvd/files/radvd.in @@ -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" |