Permalink
Browse files

Merge pull request #146 from Springest/uwsgi-socket-error

Set uWSGI to listen on socket by default
  • Loading branch information...
2 parents 75f8498 + 781750c commit 54e2c91019ff67b43b82a1e654d9e82b4b28c0c4 @webframp webframp committed Mar 5, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 attributes/uwsgi.rb
  2. +1 −1 recipes/uwsgi.rb
View
2 attributes/uwsgi.rb
@@ -1,5 +1,5 @@
default['graphite']['uwsgi']['socket'] = '/tmp/uwsgi.sock'
default['graphite']['uwsgi']['workers'] = 8
default['graphite']['uwsgi']['carbon'] = '127.0.0.1:2003'
-default['graphite']['uwsgi']['listen_http'] = true
+default['graphite']['uwsgi']['listen_http'] = false
default['graphite']['uwsgi']['service_type'] = 'runit'
View
2 recipes/uwsgi.rb
@@ -19,7 +19,7 @@
#
if node['graphite']['listen_port'].to_i < 1024 && node['graphite']['uwsgi']['listen_http']
- Chef::Log.error!("uwsgi cannot bind to ports less than 1024. Please set \"node['graphite']['listen_port']\" to an appropriate value")
+ Chef::Log.error("uwsgi cannot bind to ports less than 1024. Please set \"node['graphite']['listen_port']\" to an appropriate value")
end
if node['graphite']['uwsgi']['listen_http'] == false

0 comments on commit 54e2c91

Please sign in to comment.