Commit d3e49a247457a86a410757ad703798883618e5b5

Authored by Sergio Oliveira
1 parent 39b95e6e

fastcgi running with mailman:apache

nginx user was also added to group apache
cookbooks/mailman/files/centos/spawn-fcgi
1 1 SOCKET=/var/run/fcgiwrap.socket
2   -OPTIONS="-u nginx -g apache -s $SOCKET -S -M 0600 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /usr/sbin/fcgiwrap"
  2 +OPTIONS="-u mailman -g apache -s $SOCKET -S -M 0660 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /usr/sbin/fcgiwrap"
... ...
cookbooks/mailman/recipes/webui.rb
... ... @@ -36,6 +36,13 @@ cookbook_file '/etc/sysconfig/spawn-fcgi' do
36 36 notifies :restart, 'service[spawn-fcgi]'
37 37 end
38 38  
  39 +group 'apache' do
  40 + action 'manage'
  41 + append true
  42 + members ['nginx']
  43 + notifies :restart, 'service[nginx]'
  44 +end
  45 +
39 46 service 'spawn-fcgi' do
40 47 action [:enable, :start]
41 48 supports :restart => true
... ...