Last active
June 20, 2017 19:29
-
-
Save agrohe21/be52fbaf46d84e3bd792ee2784563940 to your computer and use it in GitHub Desktop.
Monitor Pentaho JVM on boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EGIN INIT INFO | |
# Provides: pentaho-mon-jvm | |
# Required-Start: $pentaho-dis | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Pentaho Monitor DIS JVM | |
### END INIT INFO | |
case "$1" in | |
"start") | |
su pentaho -lc "/home/pentaho/projects/ps-shared/kettle/monitor/di/env/dev6/mon_jvm_remote.sh Cluster1Master > /home/pentaho/mon_jvm_local.log 2>&1 &" | |
;; | |
"stop") | |
;; | |
*) | |
echo "Usage: $0 { start | stop }" | |
;; | |
esac | |
exit 0 | |
update-rc.d pentaho-mon-jvm defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment