Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created August 7, 2016 13:45
Show Gist options
  • Select an option

  • Save johnhamelink/82f838c10be1809fa5e8f8ef5f02b9b8 to your computer and use it in GitHub Desktop.

Select an option

Save johnhamelink/82f838c10be1809fa5e8f8ef5f02b9b8 to your computer and use it in GitHub Desktop.
description "Find a Player API"
setuid deploy
setgid deploy
start on runlevel [2345]
stop on runlevel [016]
expect stop
respawn
env MIX_ENV=prod
export MIX_ENV
env HOME=/home/deploy
export HOME
pre-start exec /bin/sh /opt/api/bin/api start
post-stop exec /bin/sh /opt/api/bin/api stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment