Thanks Roberto!
On Mon, Jan 24, 2011 at 11:00 PM, Roberto De Ioris <[email protected]> wrote: > > Il giorno 24/gen/2011, alle ore 22.52, Bo Shi ha scritto: > >> Currently, the only place I've seen in the documentation that mentions >> log rotation is in the changelog... >> >> - logsize tracking (uwsgi.logsize) for future embedded log rotation >> >> Nothing in the uwsgi signals documentation indicates that it can be >> used for log rotation. What's the canonical/preferred way of rotation >> uwsgi logs? Is there currently a uwsgi equivalent to the nginx -USR1 >> signal to re-open log files? >> >> > > You can issue a SIGHUP to the master, but pay attention to the log path, use > absolute path > or you will get in trouble if your app do chdir() > > Another way is using the copytruncate option of logrotate (and you do not > need the reopen the log files in uWSGI) > > "The future" is sending a command via tcp/unix to reopen (or change) the > logfile > > -- > Roberto De Ioris > http://unbit.it > > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
