Skip to content

Instantly share code, notes, and snippets.

@agrohe21
Last active June 20, 2017 19:29
Show Gist options
  • Save agrohe21/be52fbaf46d84e3bd792ee2784563940 to your computer and use it in GitHub Desktop.
Save agrohe21/be52fbaf46d84e3bd792ee2784563940 to your computer and use it in GitHub Desktop.
Monitor Pentaho JVM on boot
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