Make log file dir configurable.
This commit is contained in:
parent
23964a65fe
commit
a43dd34e17
@ -6,6 +6,12 @@ start on runlevel [2345]
|
|||||||
console log
|
console log
|
||||||
respawn
|
respawn
|
||||||
|
|
||||||
|
pre-start script
|
||||||
|
if [ -r /etc/default/mon-thresh ]; then
|
||||||
|
. /etc/default/mon-thresh
|
||||||
|
fi
|
||||||
|
end script
|
||||||
|
|
||||||
setgid thresh
|
setgid thresh
|
||||||
setuid 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
|
exec /usr/bin/java -Xmx8g -cp /opt/mon/mon-thresh.jar com.hpcloud.mon.ThresholdingEngine /etc/mon/mon-thresh-config.yml topology-name
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
||||||
<file>mon-thresh.log</file>
|
<file>${LOGDIR}/mon-thresh.log</file>
|
||||||
|
|
||||||
<encoder>
|
<encoder>
|
||||||
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
|
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
|
||||||
|
Loading…
Reference in New Issue
Block a user