-
-
Save artemeff/6ef503effd0ceec70765 to your computer and use it in GitHub Desktop.
runit with erlang and relx
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/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