Commit 723594e0 authored by David Coutadeur's avatar David Coutadeur
Browse files

get Fusion Directory logs on stdout (via rsyslog)

parent 9205cd20
......@@ -74,8 +74,15 @@
- perl-Archive-Extract
- perl-File-Copy-Recursive
- perl-XML-Twig
- rsyslog
state: present
- name: config rsyslog
shell: |
echo 'user.* -/var/log/user.log' > /etc/rsyslog.d/fd.conf
sed -i -e 's/^\(.*SysSock.Use\)/#\1/' /etc/rsyslog.conf
sed -i -e 's/"imuxsock"/"imuxsock")/' /etc/rsyslog.conf
- name: Allow all locales
shell: sed -i -e /override_install_langs/d /etc/yum.conf
......@@ -15,8 +15,10 @@ then
/usr/sbin/nginx -g 'daemon off;'
elif [ "$1" = "php-fpm" ]
/usr/sbin/rsyslogd -iNONE
ln -sf /dev/stdout /var/log/php-fpm/error.log
ln -sf /dev/stdout /var/log/php-fpm/www-error.log
ln -sf /proc/$$/fd/1 /var/log/user.log
/usr/sbin/php-fpm --nodaemonize
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment