app-admin/glance: update init script one last time
authorMatthew Thode <prometheanfire@gentoo.org>
Mon, 18 Sep 2017 04:22:43 +0000 (23:22 -0500)
committerMatthew Thode <prometheanfire@gentoo.org>
Mon, 18 Sep 2017 04:54:59 +0000 (23:54 -0500)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

app-admin/glance/files/glance.initd-2 [new file with mode: 0644]
app-admin/glance/glance-15.0.0.ebuild
app-admin/glance/glance-2017.2.9999.ebuild

diff --git a/app-admin/glance/files/glance.initd-2 b/app-admin/glance/files/glance.initd-2
new file mode 100644 (file)
index 0000000..4d4849f
--- /dev/null
@@ -0,0 +1,15 @@
+#!/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/${RC_SVCNAME}
+command_user="${GLANCE_USER:-glance}"
+command_background=yes
+pidfile=/run/${RC_SVCNAME}.pid
+required_files=/etc/glance/${RC_SVCNAME}.conf
+
+depend() {
+       need net
+}
index 495638699ed55c9a82138d0457571b3c2637f2b9..9bea9ce0a5548bec653273c81e1329455b8bac81 100644 (file)
@@ -125,9 +125,7 @@ python_compile_all() {
 python_install_all() {
        distutils-r1_python_install_all
 
-       for svc in api glare registry scrubber; do
-               newinitd "${FILESDIR}/glance.initd-r2" glance-${svc}
-       done
+       newinitd "${FILESDIR}/glance.initd-2" glance-api
 
        diropts -m 0750 -o glance -g glance
        dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
index c65b743b462c861b8a868befc2e2b8ddc33ad760..71b923e6de69169982025200d48cb85d531d9ea0 100644 (file)
@@ -126,9 +126,7 @@ python_compile_all() {
 python_install_all() {
        distutils-r1_python_install_all
 
-       for svc in api glare registry scrubber; do
-               newinitd "${FILESDIR}/glance.initd-r2" glance-${svc}
-       done
+       newinitd "${FILESDIR}/glance.initd-2" glance-api
 
        diropts -m 0750 -o glance -g glance
        dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber