Store logs to /data/logs

master
Pierre Jaury 9 years ago
parent 9fc202006c
commit caab793716

@ -1,7 +1,7 @@
user www-data; user www-data;
worker_processes 1; worker_processes 1;
error_log /var/log/nginx/error.log info; error_log /data/logs/nginx-error.log info;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
events { events {
@ -11,7 +11,7 @@ events {
http { http {
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
default_type application/octet-stream; default_type application/octet-stream;
access_log /var/log/nginx/access.log; access_log /data/logs/nginx.log;
sendfile on; sendfile on;
keepalive_timeout 65; keepalive_timeout 65;
server_tokens off; server_tokens off;

@ -0,0 +1,5 @@
$ModLoad imuxsock
$ModLoad imklog
*.* /data/logs/mail.log

@ -1,6 +1,12 @@
[supervisord] [supervisord]
nodaemon = true nodaemon = true
logfile = /var/log/supervisor/supervisord.log logfile = /data/logs/supervisord.log
[program:nginx]
command = nginx -g 'daemon off;'
[program:rsyslog]
command = rsyslogd -n
[program:postfix] [program:postfix]
command = /usr/lib/postfix/master -d command = /usr/lib/postfix/master -d
@ -11,14 +17,12 @@ command = /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf -F
[program:spamassassin] [program:spamassassin]
command = /usr/sbin/spamd command = /usr/sbin/spamd
[program:rsyslog]
command = rsyslogd -n
[program:admin] [program:admin]
command = uwsgi --yaml /etc/uwsgi/apps-enabled/freeposte.yml command = uwsgi --yaml /etc/uwsgi/apps-enabled/freeposte.yml
stdout_logfile = /data/logs/admin.log
[program:nginx] stderr_logfile = /data/logs/admin-error.log
command = nginx -g 'daemon off;'
[program:webmail] [program:webmail]
command = php5-fpm -F command = php5-fpm -F
stdout_logfile = /data/logs/php.log
stderr_logfile = /data/logs/php-error.log

Loading…
Cancel
Save