let me show uwsgi.ini
because I'm still just killing all my logging with logrotate

cat /etc/uwsgi/uwsgi.ini
[uwsgi]

master
vacuum
log-reopen
socket = /tmp/uwsgi.sock
cheaper = 2
processes = 128
module = conf
buffer-size = 32768
post-buffering = 32768
post-buffering-bufsize = 65536
daemonize = /var/log/uwsgi.log
pidfile = /var/run/uwsgi.pid
uid = fileservices
spooler = /var/spool/uwsgi
pythonpath = /etc/uwsgi:/usr/share/nginx/html/uwsgi

On 04/05/2012 10:12 AM, Roberto De Ioris wrote:
I think I need heelp, here is my logrotate file
/var/log/uwsgi.log {
      daily
      rotate 10
      missingok
      notifempty
      compress
      sharedscripts
      postrotate
        [ ! -f /var/run/uwsgi.pid ] || kill -HUP `cat /var/run/uwsgi.pid`
      endscript
}

when it finishes new file exists, and any logging any more.


be sure to start uwsgi with --log-reopen option, otherwise
stdin/stdout/stderr will be maintained. Your script looks good

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to