Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# i'm no runit expert, i just ripped off someone's runit config and got this to work:
# /var/service/tender-dj-1/run
# -rwxr-xr-x
set -e
cd /data/tender/current
exec 2>&1
exec chpst -u entp:entp -e /var/service/tender-dj-1/env rake jobs:work
# /var/service/tender-dj-1/env is a dir with files containing the env contents
# put whatever you want there
$ cat env/RAILS_ENV
$ cat env/MAX_PRIORITY
# /var/service/tender-dj-1/log/run
# -rwxr-xr-x
set -e
exec svlogd ./main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment