Browse Source

Init script fixes

Updated init script to:
- Start infoblox-ipam-agent with required --config-file options
- Removed hard pathname to infoblox-ipam-agent
- Updated installation documentation to detail install location of
  init script

Change-Id: Ib1958338b9ff5534a9085318656568fcba24638e
tags/2.0.2
Yue Ko 4 years ago
parent
commit
cdf4213a3a
2 changed files with 10 additions and 3 deletions
  1. +6
    -0
      doc/source/installation.rst
  2. +4
    -3
      etc/init.d/infoblox-ipam-agent

+ 6
- 0
doc/source/installation.rst View File

@@ -378,6 +378,12 @@ Installing the Driver
The driver need to be installed on each controller node that is running the
Neutron service. The driver is available from PyPi, and can be installed using
the ``pip install`` command.
Note that, by default, the init script ``infoblox-ipam-agent`` is installed as
``/usr/local/etc/init.d/infoblox-ipam-agent``. To install the script in ``/etc/init.d``,
specify ``--install-option`` as follow::

$ sudo pip install --install-option="--install-data=/" networking-infoblox


Latest Release
--------------


+ 4
- 3
etc/init.d/infoblox-ipam-agent View File

@@ -14,8 +14,8 @@ set -e
PIDFILE=/var/run/neutron/infoblox-ipam-agent.pid
LOGFILE=/var/log/neutron/infoblox-ipam-agent.log

DAEMON=/usr/bin/infoblox-ipam-agent
DAEMON_ARGS="--log-file=$LOGFILE"
DAEMON=infoblox-ipam-agent
DAEMON_ARGS="--log-file=$LOGFILE --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini"
DAEMON_DIR=/var/run

ENABLED=true
@@ -29,9 +29,10 @@ mkdir -p /var/log/neutron

. /lib/lsb/init-functions

export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin:/usr/local/bin"
export TMPDIR=/var/lib/neutron/tmp

DAEMON=`which ${DAEMON}`
if [ ! -x ${DAEMON} ] ; then
exit 0
fi


Loading…
Cancel
Save