diff --git a/templates/daemon.upstart.erb b/templates/daemon.upstart.erb index 15b0f6256..d58b32a04 100644 --- a/templates/daemon.upstart.erb +++ b/templates/daemon.upstart.erb @@ -19,7 +19,9 @@ end script script # read settings like GOMAXPROCS from "/etc/default/<%= @name %>", if available. + set -o allexport [ -e $DEFAULTS ] && . $DEFAULTS + set +o allexport export GOMAXPROCS=${GOMAXPROCS:-2} <%- require 'shellwords' -%>