Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Forked from bellingboe/gist:6541157
Created September 12, 2013 17:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larzconwell/6541241 to your computer and use it in GitHub Desktop.
Save larzconwell/6541241 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [[ "${APP_FILE}" == "" ]]; then
APP_FILE="app3.js"
fi
echo "TTNRT : about to forever start ${APP_FILE}"
if [[ "${1}" == "start" ]]; then
echo "Starting: ${APP_FILE}"
echo `forever start -l forever.log -o out.log -e err.log ~/TTN-RT/"${APP_FILE}"`
elif [[ "${1}" == "stop" ]]; then
echo "Stopping: ${APP_FILE}"
echo `forever stop ${APP_FILE}`
else
echo "Um, you didn't tell me what to do. [start | stop]"
fi
echo "FIN."
@bellingboe
Copy link

THANK YOU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment