Created
May 14, 2018 14:11
-
-
Save AstroTom/018e7e80a05ed851828579e27a0dabd5 to your computer and use it in GitHub Desktop.
wishtrip startup skeleton
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
# | |
# 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