diff options
author | pav <pav@FreeBSD.org> | 2008-07-08 19:54:56 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2008-07-08 19:54:56 +0800 |
commit | e76c166c58ff8f48f93232248140424e654d1eef (patch) | |
tree | a45cb17db2f0e68b08c4306c4a9923a4c0119c7c | |
parent | 964800c40561d70a92c0593eb4bf50eb9ee1a2e3 (diff) | |
download | freebsd-ports-gnome-e76c166c58ff8f48f93232248140424e654d1eef.tar.gz freebsd-ports-gnome-e76c166c58ff8f48f93232248140424e654d1eef.tar.zst freebsd-ports-gnome-e76c166c58ff8f48f93232248140424e654d1eef.zip |
- Add support for setting startup flags in rc script via rc.conf variable
PR: ports/125209
Submitted by: Case Dorsett <casedorsett@gmail.com>
Approved by: Joseph Scott <joseph@randomnetworks.com> (maintainer)
-rw-r--r-- | net/balance/Makefile | 1 | ||||
-rw-r--r-- | net/balance/files/balance.sh.in | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/net/balance/Makefile b/net/balance/Makefile index 22a9c88720cb..f20ebcbd5ce0 100644 --- a/net/balance/Makefile +++ b/net/balance/Makefile @@ -7,6 +7,7 @@ PORTNAME= balance PORTVERSION= 3.35 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.inlab.de/ \ ${MASTER_SITE_SOURCEFORGE_EXTENDED} diff --git a/net/balance/files/balance.sh.in b/net/balance/files/balance.sh.in index 73c0ee98d4a5..53b1bf0382c0 100644 --- a/net/balance/files/balance.sh.in +++ b/net/balance/files/balance.sh.in @@ -12,6 +12,7 @@ # #balance_enable="YES" #balance_hosts="host1" +#balance_host1_flags="-a" #balance_host1_address="host1.external.example" #balance_host1_ports="http 8180" #balance_host1_targets="host1.internal.example" @@ -34,10 +35,11 @@ start_cmd() if [ -x "${command}" ]; then for host in ${balance_hosts}; do eval ports=\"\${balance_${host}_ports}\" + eval flags=\"\${balance_${host}_flags}\" eval address=\"\${balance_${host}_address}\" eval targets=\"\${balance_${host}_targets}\" for port in ${ports}; do - "${command}" -b ${address} ${port} ${targets} + "${command}" ${flags} -b ${address} ${port} ${targets} done done fi |