summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-10-06 17:31:28 +0200
committerRemi Collet <fedora@famillecollet.com>2010-10-06 17:31:28 +0200
commitc3f3f1513e65613180a1a45273b921d06e2b4327 (patch)
treea66b39123bf0229bdd468b27f69d2bb8854b4883
parentb975a65538a1f6b1fdbd51bae494bb73f73582b3 (diff)
FusionInventory-Agent-2.1.6 - not working yet, because of http://forge.fusioninventory.org/issues/414
-rwxr-xr-xfusioninventory-agent.init10
-rw-r--r--fusioninventory-agent.spec7
2 files changed, 15 insertions, 2 deletions
diff --git a/fusioninventory-agent.init b/fusioninventory-agent.init
index aacadab..65fd96d 100755
--- a/fusioninventory-agent.init
+++ b/fusioninventory-agent.init
@@ -27,6 +27,7 @@ do_start()
# Read configuration
i=0
OPTS=
+ SERVERS=
while [ $i -lt ${#OCSMODE[*]} ]
do
if [ ${OCSMODE[$i]:-none} == daemon ]; then
@@ -38,11 +39,18 @@ do_start()
OPTS="$OPTS --local=/var/lib/$prog"
elif [ ! -z "${OCSSERVER[$i]}" ]; then
# Remote inventory
- OPTS="$OPTS --server=${OCSSERVER[$i]}"
+ if [ -z "$SERVERS" ]; then
+ SERVERS=${OCSSERVER[$i]}
+ else
+ SERVERS="$SERVERS,${OCSSERVER[$i]}"
+ fi
fi
fi
((i++))
done
+ if [ -n "$SERVERS" ]; then
+ OPTS="$OPTS --server=$SERVERS"
+ fi
if [ -n "$OPTS" ]; then
echo -n $"Starting $prog: "
daemon $prog --logfile=$logfile $FUSINVOPT --daemon $OPTS 2>/dev/null
diff --git a/fusioninventory-agent.spec b/fusioninventory-agent.spec
index 5a2e99a..1ca5870 100644
--- a/fusioninventory-agent.spec
+++ b/fusioninventory-agent.spec
@@ -4,7 +4,7 @@ Name: fusioninventory-agent
Summary: FusionInventory agent
Summary(fr): Agent FusionInventory
-Version: 2.1.5
+Version: 2.1.6
%if 0%{?gitver:1}
Release: 2.git%{gitver}%{?dist}
@@ -229,6 +229,11 @@ exit 0
%changelog
+* Wed Oct 06 2010 Remi Collet <Fedora@famillecollet.com> 2.1.6-1
+- update to 2.1.6
+ http://cpansearch.perl.org/src/FUSINV/FusionInventory-Agent-2.1.6/Changes
+- fix init script for multi-server in daemon mode
+
* Wed Sep 15 2010 Remi Collet <Fedora@famillecollet.com> 2.1.5-1
- update to 2.1.5
http://cpansearch.perl.org/src/FUSINV/FusionInventory-Agent-2.1.5/Changes