Skip to content

Commit

Permalink
be able to start alerting distro in foreground so logs show up in the…
Browse files Browse the repository at this point in the history
… console window
  • Loading branch information
jmazzitelli authored and lucasponce committed Jul 4, 2017
1 parent e298fca commit 193131c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion dist/src/main/resources/hawkular.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ set_hawkular_classpath() {
HWK_CLASSPATH="$ISPN_LUCENE_JAR$SEPARATOR$HWK_CLASSPATH"
}

console_alerting() {
java $JAVA_OPTS -cp "$HWK_CLASSPATH" "org.hawkular.HawkularServer"
}

start_alerting() {
java $JAVA_OPTS -cp "$HWK_CLASSPATH" "org.hawkular.HawkularServer" > ${HWK_LOGS}/HawkularServer.out 2>&1 &
echo "$!" > ${HWK_DATA}/HawkularServer.pid
Expand All @@ -78,12 +82,20 @@ main() {
set_hawkular_classpath
case "$1" in
"")
;&
"start")
start_alerting
;;
"stop")
stop_alerting
;;
"console")
console_alerting
;;
*)
echo $0 '[start|stop|console]'
;;
esac
}

main "$@"
main "$@"

0 comments on commit 193131c

Please sign in to comment.