summaryrefslogtreecommitdiffstats
path: root/meta-openstack
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-11-18 14:04:46 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-11-25 15:25:38 -0500
commit7b5bba81e957c4107c02f71b0d41b0a3f035385f (patch)
tree0b60ae162a92ce78b2df2b8789131af9444cf5ce /meta-openstack
parentb2cf21f9bacceace8abe3f80256e3a9cd141c5ae (diff)
downloadmeta-cloud-services-7b5bba81e957c4107c02f71b0d41b0a3f035385f.tar.gz
initscrtips: make initscripts chkconfig and service safe
To support the execution of the chkconfig and service scripts, we need to ensure a consistent header on the initscripts, and a consistent environment that allows scratch files to be written. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack')
-rw-r--r--meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init3
-rw-r--r--meta-openstack/recipes-devtools/python/python-heat/heat.init3
-rw-r--r--meta-openstack/recipes-devtools/python/python-keystone/keystone7
-rw-r--r--meta-openstack/recipes-extended/rabbitmq/files/rabbitmq-server4
-rw-r--r--meta-openstack/recipes-support/tgt/files/tgtd.init10
5 files changed, 24 insertions, 3 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init b/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init
index 13a51b9..c726855 100644
--- a/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init
+++ b/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init
@@ -4,7 +4,8 @@
4# Provides: 4# Provides:
5# Required-Start: $remote_fs $network $syslog 5# Required-Start: $remote_fs $network $syslog
6# Required-Stop: $remote_fs $syslog 6# Required-Stop: $remote_fs $syslog
7# Default-Stop: 0 1 6 7# Default-Start: 3 5
8# Default-Stop: 0 1 2 6
8# Short-Description: Ceilometer Servers 9# Short-Description: Ceilometer Servers
9# Description: OpenStack Monitoring Service (code-named Ceilometer) server(s) 10# Description: OpenStack Monitoring Service (code-named Ceilometer) server(s)
10### END INIT INFO 11### END INIT INFO
diff --git a/meta-openstack/recipes-devtools/python/python-heat/heat.init b/meta-openstack/recipes-devtools/python/python-heat/heat.init
index 452691a..a7a168d 100644
--- a/meta-openstack/recipes-devtools/python/python-heat/heat.init
+++ b/meta-openstack/recipes-devtools/python/python-heat/heat.init
@@ -4,7 +4,8 @@
4# Provides: 4# Provides:
5# Required-Start: $remote_fs $network $syslog 5# Required-Start: $remote_fs $network $syslog
6# Required-Stop: $remote_fs $syslog 6# Required-Stop: $remote_fs $syslog
7# Default-Stop: 0 1 6 7# Default-Start: 3 5
8# Default-Stop: 0 1 2 6
8# Short-Description: Heat Servers 9# Short-Description: Heat Servers
9# Description: OpenStack Orchestration Service (code-named heat) 10# Description: OpenStack Orchestration Service (code-named heat)
10### END INIT INFO 11### END INIT INFO
diff --git a/meta-openstack/recipes-devtools/python/python-keystone/keystone b/meta-openstack/recipes-devtools/python/python-keystone/keystone
index bdcfcc7..a5529df 100644
--- a/meta-openstack/recipes-devtools/python/python-keystone/keystone
+++ b/meta-openstack/recipes-devtools/python/python-keystone/keystone
@@ -2,7 +2,12 @@
2 2
3### BEGIN INIT INFO 3### BEGIN INIT INFO
4# Provides: keystone 4# Provides: keystone
5# Short-Description: OpenStack Identity Service 5# Required-Start: $remote_fs $network $syslog
6# Required-Stop: $remote_fs $syslog
7# Default-Start: 3 5
8# Default-Stop: 0 1 2 6
9# Short-Description: Keystone Server
10# Description: OpenStack identity Service (code-named keystone)
6### END INIT INFO 11### END INIT INFO
7 12
8DESC="keystone" 13DESC="keystone"
diff --git a/meta-openstack/recipes-extended/rabbitmq/files/rabbitmq-server b/meta-openstack/recipes-extended/rabbitmq/files/rabbitmq-server
index 38718ea..6f1d2d4 100644
--- a/meta-openstack/recipes-extended/rabbitmq/files/rabbitmq-server
+++ b/meta-openstack/recipes-extended/rabbitmq/files/rabbitmq-server
@@ -16,6 +16,10 @@
16# Short-Description: Enable AMQP service provided by RabbitMQ broker 16# Short-Description: Enable AMQP service provided by RabbitMQ broker
17### END INIT INFO 17### END INIT INFO
18 18
19# Ensure that HOME is set, since the erlang ookie file must be written
20# somewhere
21export HOME=${HOME:-/tmp}
22
19DAEMON=/usr/bin/rabbitmq-server 23DAEMON=/usr/bin/rabbitmq-server
20CONTROL=/usr/bin/rabbitmqctl 24CONTROL=/usr/bin/rabbitmqctl
21USER=root 25USER=root
diff --git a/meta-openstack/recipes-support/tgt/files/tgtd.init b/meta-openstack/recipes-support/tgt/files/tgtd.init
index 656a243..3408645 100644
--- a/meta-openstack/recipes-support/tgt/files/tgtd.init
+++ b/meta-openstack/recipes-support/tgt/files/tgtd.init
@@ -1,5 +1,15 @@
1#!/bin/sh 1#!/bin/sh
2 2
3### BEGIN INIT INFO
4# Provides: tgtd
5# Required-Start: $remote_fs $network $syslog
6# Required-Stop: $remote_fs $syslog
7# Default-Start: 3 5
8# Default-Stop: 0 1 2 6
9# Short-Description: SCSI target daemon
10# Description: Linux SCSI target framework (tgt)
11### END INIT INFO
12
3DESC="tgtd" 13DESC="tgtd"
4DAEMON="/usr/sbin/tgtd" 14DAEMON="/usr/sbin/tgtd"
5PIDFILE="/var/run/tgtd.pid" 15PIDFILE="/var/run/tgtd.pid"