Code Review
/
openstack-build
/
ceilometer-build.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added configuration to each init scripts so that they log in their own log file,...
[openstack-build/ceilometer-build.git]
/
xenial
/
debian
/
ceilometer-agent-compute.init
diff --git
a/xenial/debian/ceilometer-agent-compute.init
b/xenial/debian/ceilometer-agent-compute.init
index 1429ed4b6dcc900f8f2c91e834d78d5f52bf930c..31d2873d4b18bd2610601565450838885c13dc92 100644
(file)
--- a/
xenial/debian/ceilometer-agent-compute.init
+++ b/
xenial/debian/ceilometer-agent-compute.init
@@
-16,8
+16,6
@@
DESC="Ceilometer Agent Compute"
SYS_NAME=ceilometer
NAME=ceilometer-agent-compute
DAEMON=/usr/bin/ceilometer-agent-compute
SYS_NAME=ceilometer
NAME=ceilometer-agent-compute
DAEMON=/usr/bin/ceilometer-agent-compute
-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}
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
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
[ -x $DAEMON ] || exit 0