]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add missing init script for neutron-plugin-sriov-agent 93/16493/3 openstack-ci/fuel-7.0/2015.1.0
authorSergey Kolekonov <skolekonov@mirantis.com>
Wed, 27 Jan 2016 14:59:33 +0000 (17:59 +0300)
committerSergey Kolekonov <skolekonov@mirantis.com>
Wed, 7 Sep 2016 08:56:20 +0000 (08:56 +0000)
Change-Id: I26ab511e7b356d62ad22bda9c643e84bad059c21
Closes-bug: #1529930

trusty/debian/changelog
trusty/debian/neutron-plugin-sriov-agent.upstart [new file with mode: 0644]

index fe930f4d9a35ccdd24f534426f8a07ce87a3763f..c16fc7fef9c9475d74f9512c567d277a96c973d8 100644 (file)
@@ -1,3 +1,10 @@
+neutron (1:2015.1.1-1~u14.04+mos2) mos7.0; urgency=medium
+
+  * Add missing init scripts for neutron-plugin-sriov-agent
+    - Related-bug: #1529930
+
+ -- Sergey Kolekonov <skolekonov@mirantis.com>  Wed, 27 Jan 2016 17:59:02 +0300
+
 neutron (1:2015.1.1-1~u14.04+mos1) mos7.0; urgency=medium
 
   * Update the patch for requirements.txt according to the latest Kilo sources
diff --git a/trusty/debian/neutron-plugin-sriov-agent.upstart b/trusty/debian/neutron-plugin-sriov-agent.upstart
new file mode 100644 (file)
index 0000000..62440f0
--- /dev/null
@@ -0,0 +1,31 @@
+description "OpenStack Neutron SRIOV Plugin Agent"
+author "Thomas Goirand <zigo@debian.org>"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+chdir /var/run
+
+respawn
+respawn limit 20 5
+limit nofile 65535 65535
+
+pre-start script
+       for i in lock run log lib ; do
+               mkdir -p /var/$i/neutron
+               chown neutron /var/$i/neutron
+       done
+end script
+
+script
+       [ -x "/usr/bin/neutron-sriov-nic-agent" ] || exit 0
+       DAEMON_ARGS="--config-file=/etc/neutron/plugins/ml2/ml2_conf_sriov.ini"
+       [ -r /etc/default/openstack ] && . /etc/default/openstack
+       [ -r /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
+       [ "x$USE_SYSLOG" = "xyes" ] && DAEMON_ARGS="$DAEMON_ARGS --use-syslog"
+       [ "x$USE_LOGFILE" != "xno" ] && DAEMON_ARGS="$DAEMON_ARGS --log-file=/var/log/neutron/neutron-plugin-sriov-agent.log"
+
+       exec start-stop-daemon --start --chdir /var/lib/neutron \
+               --chuid neutron:neutron --make-pidfile --pidfile /var/run/neutron/neutron-plugin-sriov-agent.pid \
+               --exec /usr/bin/neutron-sriov-nic-agent -- --config-file=/etc/neutron/neutron.conf ${DAEMON_ARGS}
+end script