ports/125209: need to add param _flags_ to port/balance rc script
Case Dorsett
casedorsett at gmail.com
Thu Jul 3 08:20:02 UTC 2008
>Number: 125209
>Category: ports
>Synopsis: need to add param _flags_ to port/balance rc script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 03 08:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Case Dorsett
>Release: FreeBSD 6
>Organization:
>Environment:
No matter..
>Description:
i need to add startflags to run balance (/usr/ports/net/balance) in /etc/rc.conf, but rc file (/usr/local/etc/rc.d/balance.sh) don't have var for this.
>How-To-Repeat:
try to add flags to balance.sh from rc.conf
>Fix:
add few lines to /usr/ports/net/balance/files/balance.sh.in,
patch attachment
Patch attached with submission follows:
--- balance.sh.in Mon Feb 20 23:47:19 2006
+++ balance.sh.in.new Thu Jul 3 12:00:51 2008
@@ -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 @@
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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list