summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarrokhi <farrokhi@FreeBSD.org>2016-05-15 03:11:32 +0000
committerfarrokhi <farrokhi@FreeBSD.org>2016-05-15 03:11:32 +0000
commit2ccbbddfa4b549e49a794e46fcf19ca279205931 (patch)
tree6b68bd734069c897ab082edf3cc1b41b7eff4b9d
parent249c47235920d22065403953679d329b131beba4 (diff)
downloadFreeBSD-ports-2ccbbddfa4b549e49a794e46fcf19ca279205931.zip
FreeBSD-ports-2ccbbddfa4b549e49a794e46fcf19ca279205931.tar.gz
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
-rw-r--r--net/radvd/files/radvd.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/radvd/files/radvd.in b/net/radvd/files/radvd.in
index 7b62614..4796f9f 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"
OpenPOWER on IntegriCloud