Commit 650831e94b3c8309c1ba77ea542afc16fcc4a4fe

Authored by Sergio Oliveira
Committed by Athos
1 parent 2a4e2f5d
Exists in backup

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
... ...