Skip to content

Commit

Permalink
Merge pull request #235 from hw-cookbooks/use-socket-option
Browse files Browse the repository at this point in the history
use chmod-socket option in uwsgi so it can be overridden by a wrapper
  • Loading branch information
Aaron Baer committed Aug 7, 2015
2 parents 686cde2 + 73481e6 commit d90c03c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/uwsgi.rb
Expand Up @@ -18,6 +18,7 @@
#

default['graphite']['uwsgi']['socket'] = '/tmp/uwsgi.sock'
default['graphite']['uwsgi']['socket_permissions'] = '755'
default['graphite']['uwsgi']['workers'] = 8
default['graphite']['uwsgi']['carbon'] = '127.0.0.1:2003'
default['graphite']['uwsgi']['listen_http'] = false
Expand Down
1 change: 1 addition & 0 deletions templates/default/sv-graphite-web-run.erb
Expand Up @@ -11,6 +11,7 @@ exec uwsgi --processes <%= node['graphite']['uwsgi']['workers'] %> \
--pythonpath <%= node['graphite']['base_dir'] %>/webapp/graphite \
--wsgi-file <%= node['graphite']['base_dir'] %>/conf/graphite.wsgi.example \
--uid <%= node['graphite']['user'] %> --gid <%= node['graphite']['group'] %> \
--chmod-socket=<%= node['graphite']['uwsgi']['socket_permissions'] %> \
--no-orphans --master \
--procname graphite-web \
--die-on-term \
Expand Down

0 comments on commit d90c03c

Please sign in to comment.