#!/bin/sh # # this is an example of a /etc/sv/redmine_default/run file, # as would be used by runit # To spawn the fcgi instance, it uses spawn-fcgi. # To monitor multiple instances bound to only one socket, # it uses multiwatch exec 2>&1 RAILS_RELATIVE_URL_ROOT="/redmine" \ X_DEBIAN_SITEID="default" \ RAILS_ENV="production" \ exec /usr/bin/spawn-fcgi -n -s /var/run/redmine/sockets/default/fcgi.socket \ -u www-data -- \ /usr/bin/multiwatch -f 2 /usr/share/redmine/public/dispatch.fcgi