> Hi, > > I'm noticing an issue regarding log file creation on FreeBSD with uWSGI > 0.9.7.2. This appears to work correctly on Linux. > > Anyway, in my uwsgi.ini file I specify a uid/gid. When I start uwsgi: > >>sudo uwsgi --ini uwsgi.ini > > The initial log files are created as root/wheel rather than my uid/gid. > Everything works until the logs get rotated, and after the HUP, the logs > are written to as the uid/gid specified in the uwsgi.ini file. This causes > a permissions error on the log file(s). > >
It is a catch22 problem, in the current stable release you could create the logfile with the right permissions (a bit raw, but used by other projects), or run the master as root with --master-as-root. In the latest tip (sorry i will not be able to release 0.9.8.1 until the connection at europython will return healthy) you will find --logto2 that postpone the log creation/allocation after privileges drop. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
