diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2017-09-17 22:55:28 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2017-09-17 23:54:56 -0500 |
commit | eae6dfae2055a669d81af7593ac6a64fb36706a5 (patch) | |
tree | b2dd80fcf068983815d70843904f5fe779ab2ce2 /sys-cluster | |
parent | dev-lang/ruby: arm stable, bug #631034 (diff) | |
download | gentoo-eae6dfae2055a669d81af7593ac6a64fb36706a5.tar.gz gentoo-eae6dfae2055a669d81af7593ac6a64fb36706a5.tar.bz2 gentoo-eae6dfae2055a669d81af7593ac6a64fb36706a5.zip |
sys-cluster/cinder: update init script
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/cinder/cinder-11.0.0.ebuild | 2 | ||||
-rw-r--r-- | sys-cluster/cinder/cinder-2017.2.9999.ebuild | 2 | ||||
-rw-r--r-- | sys-cluster/cinder/files/cinder.initd-2 | 24 |
3 files changed, 26 insertions, 2 deletions
diff --git a/sys-cluster/cinder/cinder-11.0.0.ebuild b/sys-cluster/cinder/cinder-11.0.0.ebuild index 780c94866e33..26d79d759941 100644 --- a/sys-cluster/cinder/cinder-11.0.0.ebuild +++ b/sys-cluster/cinder/cinder-11.0.0.ebuild @@ -177,7 +177,7 @@ python_install_all() { dodir /etc/cinder/rootwrap.d for svc in api scheduler volume; do - newinitd "${FILESDIR}/cinder.initd" cinder-${svc} + newinitd "${FILESDIR}/cinder.initd-2" cinder-${svc} done insinto /etc/cinder diff --git a/sys-cluster/cinder/cinder-2017.2.9999.ebuild b/sys-cluster/cinder/cinder-2017.2.9999.ebuild index 3adc118d7877..9db27e401adc 100644 --- a/sys-cluster/cinder/cinder-2017.2.9999.ebuild +++ b/sys-cluster/cinder/cinder-2017.2.9999.ebuild @@ -178,7 +178,7 @@ python_install_all() { dodir /etc/cinder/rootwrap.d for svc in api scheduler volume; do - newinitd "${FILESDIR}/cinder.initd" cinder-${svc} + newinitd "${FILESDIR}/cinder.initd-2" cinder-${svc} done insinto /etc/cinder diff --git a/sys-cluster/cinder/files/cinder.initd-2 b/sys-cluster/cinder/files/cinder.initd-2 new file mode 100644 index 000000000000..8601a5869b0a --- /dev/null +++ b/sys-cluster/cinder/files/cinder.initd-2 @@ -0,0 +1,24 @@ +#!/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="--config-file /etc/cinder/cinder.conf --log-file /var/log/cinder/${SVCNAME}.log" +pidfile=/var/run/cinder/${SVCNAME}.pid +required_files=/etc/cinder/cinder.conf +retry="SIGTERM/30" + +start_stop_daemon_args="--quiet --user ${CINDER_USER:-cinder}" + +depend() { + need net +} + +start_pre() { + checkpath --directory --owner ${CINDER_USER:-cinder}:${CINDER_GROUP:-cinder} --mode 0755 ${CINDER_RUN:-/var/run/cinder} + checkpath --directory --owner ${CINDER_USER:-cinder}:${CINDER_GROUP:-cinder} --mode 0755 ${CINDER_LOCK:-/var/lock/cinder} +} + |