Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2014 17:47
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 anonymous/08a99171b6e8e7042ebf to your computer and use it in GitHub Desktop.
Save anonymous/08a99171b6e8e7042ebf to your computer and use it in GitHub Desktop.
#/bin/bash
ps auxwww | grep uwsgi | grep -v grep > /dev/null 2>&1
PHOENIX_RET=$?
if [[ "$PHOENIX_RET" == "0" ]]; then
echo #
echo "changed=no comment='Phoenix is running.'"
else
uwsgi --yaml {{ pillar['phoenix']['app_root'] }}/phoenix_uwsgi.yaml > /dev/null 2>&1
echo #
echo "changed=yes comment='Started Phoenix.'"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment