Skip to content

Commit

Permalink
Merge pull request #130 from webcoyote/patch-1
Browse files Browse the repository at this point in the history
Set GOMAXPROCS for runit services
  • Loading branch information
reset committed Feb 11, 2015
2 parents 57b4105 + 0ecb754 commit e208f27
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 e208f27

Please sign in to comment.