Make log file dir configurable.

This commit is contained in:
Deklan Dieterly 2014-03-20 11:49:16 -06:00
parent 23964a65fe
commit a43dd34e17
2 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,12 @@ start on runlevel [2345]
console log
respawn
pre-start script
if [ -r /etc/default/mon-thresh ]; then
. /etc/default/mon-thresh
fi
end script
setgid thresh
setuid thresh
exec /usr/bin/java -Xmx8g -cp /opt/mon/mon-thresh.jar com.hpcloud.mon.ThresholdingEngine /etc/mon/mon-thresh-config.yml topology-name

View File

@ -9,7 +9,7 @@
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>mon-thresh.log</file>
<file>${LOGDIR}/mon-thresh.log</file>
<encoder>
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>