summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-09-17 23:33:36 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2017-09-17 23:55:02 -0500
commit8cf8f2203ea4ce5f07d7a0f06dff9f60850c8a04 (patch)
tree0c16e8e54771471942fe1cd92fe47414bf3df791 /sys-cluster/cinder
parentapp-admin/glance: update init script one last time (diff)
downloadgentoo-8cf8f2203ea4ce5f07d7a0f06dff9f60850c8a04.tar.gz
gentoo-8cf8f2203ea4ce5f07d7a0f06dff9f60850c8a04.tar.bz2
gentoo-8cf8f2203ea4ce5f07d7a0f06dff9f60850c8a04.zip
sys-cluster/cinder: updating init again
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'sys-cluster/cinder')
-rw-r--r--sys-cluster/cinder/files/cinder.initd-213
1 files changed, 3 insertions, 10 deletions
diff --git a/sys-cluster/cinder/files/cinder.initd-2 b/sys-cluster/cinder/files/cinder.initd-2
index 8601a5869b0a..31584dee9d23 100644
--- a/sys-cluster/cinder/files/cinder.initd-2
+++ b/sys-cluster/cinder/files/cinder.initd-2
@@ -6,19 +6,12 @@ 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
+command_args="--config-file /etc/cinder/cinder.conf --log-file ${CINDER_LOGDIR:-/var/log/cinder}/${SVCNAME}.log"
+command_user="${CINDER_USER:-cinder}"
+pidfile=/run/${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}
-}
-