diff --git a/src/deb/init/mon-thresh.conf b/src/deb/init/mon-thresh.conf index 6a10191..3d57006 100644 --- a/src/deb/init/mon-thresh.conf +++ b/src/deb/init/mon-thresh.conf @@ -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 diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 5283057..10c95bb 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -9,7 +9,7 @@ - mon-thresh.log + ${LOGDIR}/mon-thresh.log %date %level [%thread] %logger{10} [%file:%line] %msg%n