#!/bin/sh

GOMAXPROCS=<%= node['cpu']['total'] %>

exec 2>&1
exec <%= node['runit']['chpst_bin'] %> \
  -u <%= node['consul']['service_user'] %>:<%= node['consul']['service_group'] %> \
  <%= Chef::Consul.active_binary(node) %> agent -config-dir <%= node['consul']['config_dir'] %>

#!/bin/sh

export GOMAXPROCS=<%= node['cpu']['total'] %>

exec 2>&1
exec <%= node['runit']['chpst_bin'] %> \
  -u <%= node['consul']['service_user'] %>:<%= node['consul']['service_group'] %> \
  <%= Chef::Consul.active_binary(node) %> agent -config-dir <%= node['consul']['config_dir'] %>

Add missing export for GOMAXPROCS
Add missing export for GOMAXPROCS