summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-09-17 22:55:28 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2017-09-17 23:54:56 -0500
commiteae6dfae2055a669d81af7593ac6a64fb36706a5 (patch)
treeb2dd80fcf068983815d70843904f5fe779ab2ce2 /sys-cluster/cinder/files
parentdev-lang/ruby: arm stable, bug #631034 (diff)
downloadgentoo-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/cinder/files')
-rw-r--r--sys-cluster/cinder/files/cinder.initd-224
1 files changed, 24 insertions, 0 deletions
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}
+}
+