Skip to content

Commit

Permalink
Set GOMAXPROCS for runit services
Browse files Browse the repository at this point in the history
  • Loading branch information
webcoyote committed Feb 11, 2015
1 parent 57b4105 commit 0ecb754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/default/sv-consul-run.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

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

exec 2>&1
exec <%= node['runit']['chpst_bin'] %> \
-u <%= node['consul']['service_user'] %>:<%= node['consul']['service_group'] %> \
Expand Down

0 comments on commit 0ecb754

Please sign in to comment.