Do not run binary command line tests which are failing cause things not installed...
[openstack-build/ceilometer-build.git] / trusty / debian / ceilometer-agent-central.init
index fa2fff134d3b8c49cff027d6e773f15d38517fb8..3d1985a3f6eacffa9b3bba5152de502f984e13ef 100644 (file)
@@ -3,6 +3,8 @@
 # Provides:          ceilometer-agent-central
 # Required-Start:    $network $local_fs $remote_fs $syslog
 # Required-Stop:     $remote_fs
+# Should-Start:      mongodb rabbitmq-server
+# Should-Stop:       mongodb rabbitmq-server
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: ceilometer central agent
@@ -16,8 +18,6 @@ DESC="Ceilometer Agent Central"
 SYS_NAME=ceilometer
 NAME=ceilometer-agent-central
 DAEMON=/usr/bin/ceilometer-agent-central
-DAEMON_ARGS="--config-file /etc/nova/nova.conf"
-[ -f '/etc/nova/nova-compute.conf' ] && DAEMON_ARGS=${DAEMON_ARGS}" --config-file=/etc/nova/nova-compute.conf"
 
 SCRIPTNAME=/etc/init.d/${NAME}
 DAEMON_USER=${SYS_NAME}
@@ -25,6 +25,8 @@ DAEMON_GROUP=${SYS_NAME}
 LOCK_DIR=/var/lock/${SYS_NAME}
 PID_DIR=/var/run/${SYS_NAME}
 PID_FILE=${PID_DIR}/${NAME}.pid
+LOGFILE=/var/log/${SYS_NAME}/${NAME}.log
+DAEMON_ARGS="--config-file=/etc/${SYS_NAME}/ceilometer.conf --log-file=$LOGFILE"
 
 [ -x $DAEMON ] || exit 0