From 650831e94b3c8309c1ba77ea542afc16fcc4a4fe Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 7 May 2015 16:14:23 -0300 Subject: [PATCH] fastcgi running with mailman:apache --- cookbooks/mailman/files/centos/spawn-fcgi | 2 +- cookbooks/mailman/recipes/webui.rb | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cookbooks/mailman/files/centos/spawn-fcgi b/cookbooks/mailman/files/centos/spawn-fcgi index ec54e17..a12733a 100644 --- a/cookbooks/mailman/files/centos/spawn-fcgi +++ b/cookbooks/mailman/files/centos/spawn-fcgi @@ -1,2 +1,2 @@ SOCKET=/var/run/fcgiwrap.socket -OPTIONS="-u nginx -g apache -s $SOCKET -S -M 0600 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /usr/sbin/fcgiwrap" +OPTIONS="-u mailman -g apache -s $SOCKET -S -M 0660 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /usr/sbin/fcgiwrap" diff --git a/cookbooks/mailman/recipes/webui.rb b/cookbooks/mailman/recipes/webui.rb index 0bce035..9609fc4 100644 --- a/cookbooks/mailman/recipes/webui.rb +++ b/cookbooks/mailman/recipes/webui.rb @@ -36,6 +36,13 @@ cookbook_file '/etc/sysconfig/spawn-fcgi' do notifies :restart, 'service[spawn-fcgi]' end +group 'apache' do + action 'manage' + append true + members ['nginx'] + notifies :restart, 'service[nginx]' +end + service 'spawn-fcgi' do action [:enable, :start] supports :restart => true -- libgit2 0.21.2