Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AstroTom
Created May 14, 2018 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AstroTom/018e7e80a05ed851828579e27a0dabd5 to your computer and use it in GitHub Desktop.
Save AstroTom/018e7e80a05ed851828579e27a0dabd5 to your computer and use it in GitHub Desktop.
wishtrip startup skeleton
#
# all wishtrip services (controller, jobexec, gate) should have the following near the top of the service starup script
#
RNT_CONFIG_FILE=/etc/rnt.conf
# read in wishtrip config file for value of RNT_ENV etc
if [ -s $RNT_CONFIG_FILE ]; then
. $RNT_CONFIG_FILE
fi
# test $RNT_ENV
[ -z "$RNT_ENV" ] && (echo >&2 "Variable is unset"; logger -t wishtrip "$0: RNT_ENV is unset, aborting";exit 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment