Added configuration to each init scripts so that they log in their own log file,...
[openstack-build/ceilometer-build.git] / trusty / debian / ceilometer-agent-central.init
index fa2fff134d3b8c49cff027d6e773f15d38517fb8..1448d5034ee1923a16df6bb564e5cc7bb144ac82 100644 (file)
@@ -16,8 +16,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 +23,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/${SYSNAME}/ceilometer.conf --log-file=$LOGFILE"
 
 [ -x $DAEMON ] || exit 0