summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-09-17 23:51:34 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2017-09-17 23:55:08 -0500
commitde13df47f5d1ee88da5b465bc2f293b579633537 (patch)
tree9d6661814a63e2b90dbdc20ebfede0b52c26daf3 /sys-cluster
parentsys-cluster/heat: updating init (diff)
downloadgentoo-de13df47f5d1ee88da5b465bc2f293b579633537.tar.gz
gentoo-de13df47f5d1ee88da5b465bc2f293b579633537.tar.bz2
gentoo-de13df47f5d1ee88da5b465bc2f293b579633537.zip
sys-cluster/neutron: updating init
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/neutron/files/neutron.initd-217
-rw-r--r--sys-cluster/neutron/neutron-11.0.0-r1.ebuild14
-rw-r--r--sys-cluster/neutron/neutron-2017.2.9999.ebuild14
3 files changed, 31 insertions, 14 deletions
diff --git a/sys-cluster/neutron/files/neutron.initd-2 b/sys-cluster/neutron/files/neutron.initd-2
new file mode 100644
index 000000000000..a558db0225e8
--- /dev/null
+++ b/sys-cluster/neutron/files/neutron.initd-2
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Starts ${SVCNAME} service for OpenStack"
+
+command=/usr/bin/"${SVCNAME}"
+command_background=yes
+command_args="${required_files[@]/#/--config-file } --log-file ${NEUTRON_LOGDIR:-/var/log/neutron}/${SVCNAME#*-}.log"
+command_user="${NEUTRON_USER:-neutron}"
+pidfile=/run/"${SVCNAME}".pid
+required_files=(${NEUTRON_CONFS[@]:-/etc/neutron/neutron.conf})
+retry="SIGTERM/15"
+
+depend() {
+ need net
+}
diff --git a/sys-cluster/neutron/neutron-11.0.0-r1.ebuild b/sys-cluster/neutron/neutron-11.0.0-r1.ebuild
index e58dc3c432ff..3edbd0c87627 100644
--- a/sys-cluster/neutron/neutron-11.0.0-r1.ebuild
+++ b/sys-cluster/neutron/neutron-11.0.0-r1.ebuild
@@ -177,30 +177,30 @@ src_prepare() {
python_install_all() {
distutils-r1_python_install_all
if use server; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-server"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-server"
newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
dosym /etc/neutron/plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
fi
if use dhcp; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-dhcp-agent"
newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
fi
if use l3; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-l3-agent"
newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
fi
if use metadata; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-metadata-agent"
newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
fi
if use openvswitch; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-openvswitch-agent"
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
- newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-ovs-cleanup"
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
fi
if use linuxbridge; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-linuxbridge-agent"
newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
fi
diropts -m 755 -o neutron -g neutron
diff --git a/sys-cluster/neutron/neutron-2017.2.9999.ebuild b/sys-cluster/neutron/neutron-2017.2.9999.ebuild
index 0ee698e860da..d0129f9df24d 100644
--- a/sys-cluster/neutron/neutron-2017.2.9999.ebuild
+++ b/sys-cluster/neutron/neutron-2017.2.9999.ebuild
@@ -178,30 +178,30 @@ src_prepare() {
python_install_all() {
distutils-r1_python_install_all
if use server; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-server"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-server"
newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
dosym /etc/neutron/plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
fi
if use dhcp; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-dhcp-agent"
newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
fi
if use l3; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-l3-agent"
newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
fi
if use metadata; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-metadata-agent"
newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
fi
if use openvswitch; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-openvswitch-agent"
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
- newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-ovs-cleanup"
newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
fi
if use linuxbridge; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
+ newinitd "${FILESDIR}/neutron.initd-2" "neutron-linuxbridge-agent"
newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
fi
diropts -m 755 -o neutron -g neutron