Hi.

I use uwsgi with systemd.

Thanks for the very helpful page

http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html

I need to rotate the logfile every day with a date pattern and I solved this with this lines.

###
logdate = %%Y-%%m-%%d %%H:%%M:%%S
logto = /webroot/user001/logs/uwsgi_@(exec://date +%%Y-%%m-%%d).log
log-reopen = true
logfile-chown = user001:user001
###

to trigger this I make

systemctl restart uwsgi.service

Is there a better way to rotate the uwsgi log?

BR
Aleks
_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to