ab39fb9d1c
* Setup ceilometer-agent-compute on controller node * pass vcenter credentials to ceilometer Implements blueprint ceilometer-support-for-vcenter Change-Id: I87fcd87a22371f664a305ea314e2019d3a5e3d38
26 lines
580 B
Plaintext
26 lines
580 B
Plaintext
# vim: set ft=upstart et ts=2:
|
|
description "ceilometer-agent-compute"
|
|
author "Chuck Short <zulcss@ubuntu.com>"
|
|
|
|
start on runlevel [2345]
|
|
stop on runlevel [!2345]
|
|
|
|
chdir /var/run
|
|
|
|
pre-start script
|
|
mkdir -p /var/run/ceilometer
|
|
chown ceilometer:root /var/run/ceilometer/
|
|
|
|
mkdir -p /var/lock/ceilometer
|
|
chown ceilometer:root /var/lock/ceilometer/
|
|
end script
|
|
|
|
script
|
|
if [ -r /etc/default/$UPSTART_JOB ]; then
|
|
. /etc/default/$UPSTART_JOB
|
|
fi
|
|
|
|
start-stop-daemon --start --chuid ceilometer --exec /usr/bin/ceilometer-agent-compute -- $CEILOMETER_COMPUTE_OPTS
|
|
end script
|
|
|