From 8cf8f2203ea4ce5f07d7a0f06dff9f60850c8a04 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Sun, 17 Sep 2017 23:33:36 -0500 Subject: sys-cluster/cinder: updating init again Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- sys-cluster/cinder/files/cinder.initd-2 | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'sys-cluster/cinder') 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} -} - -- cgit v1.2.3-65-gdbad