Skip to content

Instantly share code, notes, and snippets.

@artemeff
Created Aug 9, 2015
Embed
What would you like to do?
runit with erlang and relx
#!/bin/sh
APP=<application_name>
USER=user
ROOT=/home/$USER/apps/$APP/_rel/$APP
export HOME=/home/$USER
exec 2>&1
exec chpst -u $USER $ROOT/bin/$APP foreground
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment