summaryrefslogtreecommitdiff
path: root/sys-cluster/heat/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-31 20:30:04 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-31 20:30:04 +0000
commit4650985dd0e898b82e0d2ec225931297d4fadccf (patch)
treeeb0e8002cf3ebf1009110b6fec47fa90f873d824 /sys-cluster/heat/files
parent67f76a858f1ac826bd8a550d756d9ec6e340ed4f (diff)
gentoo resync : 31.01.2018
Diffstat (limited to 'sys-cluster/heat/files')
-rw-r--r--sys-cluster/heat/files/heat.initd54
-rw-r--r--sys-cluster/heat/files/heat.initd-216
2 files changed, 9 insertions, 61 deletions
diff --git a/sys-cluster/heat/files/heat.initd b/sys-cluster/heat/files/heat.initd
index 41ec14cf82a3..295879ebea79 100644
--- a/sys-cluster/heat/files/heat.initd
+++ b/sys-cluster/heat/files/heat.initd
@@ -1,52 +1,16 @@
#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-BASENAME=$(echo $SVCNAME | cut -d '-' -f 1)
-SERVERNAME=$(echo $SVCNAME | cut -d '-' -f 2)
+description="Starts ${SVCNAME} service for OpenStack"
+
+command=/usr/bin/${SVCNAME}
+command_user="${HEAT_USER:-heat}"
+command_background=yes
+command_args="--config-file /etc/heat/heat.conf --log-file ${HEAT_LOGDIR:-/var/log/heat}/${SVCNAME}.log"
+pidfile=/run/${SVCNAME}.pid
+required_files=/etc/heat/heat.conf
depend() {
need net
}
-
-checkconfig() {
- if [ ! -r /etc/conf.d/$BASENAME ]; then
- eerror "No heat conf.d file found: /etc/conf.d/$BASENAME)"
- else
- . /etc/conf.d/$BASENAME
- fi
-}
-
-start() {
- checkconfig || return $?
-
- ebegin "Starting ${SVCNAME}"
- if [ ! -d ${PID_PATH} ]; then
- mkdir ${PID_PATH}
- chown heat:root ${PID_PATH}
- fi
-
- start-stop-daemon --start \
- --quiet \
- --user heat \
- --pidfile "${PID_PATH}/${SVCNAME}.pid" \
- --make-pidfile \
- --background \
- --exec /usr/bin/heat-${SERVERNAME} -- --config-file /etc/heat/heat.conf --log-file /var/log/heat/heat-${SERVERNAME}
-
- eend $? "Failed to start ${SVCNAME}"
-}
-
-stop() {
- checkconfig || return $?
-
- ebegin "Stopping ${SVCNAME}"
-
- start-stop-daemon --stop \
- --quiet \
- --user heat \
- --pidfile "${PID_PATH}/${SVCNAME}.pid" \
- --exec /usr/bin/heat-${SERVERNAME} -- --config-file /etc/heat/heat.conf
-
- eend $? "Failed to stop ${SVCNAME}"
-}
diff --git a/sys-cluster/heat/files/heat.initd-2 b/sys-cluster/heat/files/heat.initd-2
deleted file mode 100644
index 2161aa9918ee..000000000000
--- a/sys-cluster/heat/files/heat.initd-2
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/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_user="${HEAT_USER:-heat}"
-command_background=yes
-command_args="--config-file /etc/heat/heat.conf --log-file ${HEAT_LOGDIR:-/var/log/heat}/${SVCNAME}.log"
-pidfile=/run/${SVCNAME}.pid
-required_files=/etc/heat/heat.conf
-
-depend() {
- need net
-}