Skip to content

Instantly share code, notes, and snippets.

Embed
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
#!/bin/sh
set -e
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
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
production
$ cat env/MAX_PRIORITY
2
# /var/service/tender-dj-1/log/run
# -rwxr-xr-x
#!/bin/sh
set -e
exec svlogd ./main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.