Skip to content
Guilherme Oliveira edited this page Nov 23, 2015 · 1 revision

When using runit this schema can be used:

/services
`--buildbot-dashboard
   |--app (The buildbot-dashboard binary)
   |--env
   |  `--PORT
   |  `--MARTINI_ENV
   |--run (run script)
   `--log
    |--main/
    `--run (run script for log)

Contents of env/PORT (environment var):

8080

Contents of env/MARTINI_ENV (environment var):

production

Contents of run:

#!/bin/sh

# get both standar output/error
exec 2>&1

# run like user buildbot
exec chpst -u buildbot -e ./env ./buildbot-dashboard --buildbot="http://10.0.0.1:8010"

Contents of log/run:

#!/bin/sh
exec svlogd -tt ./main
Clone this wiki locally