-
-
Save anonymous/08a99171b6e8e7042ebf to your computer and use it in GitHub Desktop.
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
#/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