----- Oryginalna wiadomość -----
> Od: "Roberto De Ioris" <[email protected]>
> Do: "uWSGI developers and users list" <[email protected]>
> Wysłane: czwartek, 3 marzec 2011 9:20:20
> Temat: Re: [uWSGI] uWSGI 0.9.7-beta1 - vacuum
> 
> Before unlinking, vacuum chdir() to the initial directory where uWSGI
> was started.

> But sockets are created after the user specified chdir.

What I think is good


> Pidfile is created before user chdir. 

This is wrong. Since:
--chdir <dir>                 chdir to <dir> before app loading
This should change the directory to the selected before any file is created. 
IMHO.

> Damn, that is a mess :)
> 
> I have rewritten the vacuum functions in a way that i can mimic the
> startup behaviour:
> 
> - chdir to initial directory
> - unlink pidfile if used
> - chdir to user defined "chdir" option if specified
> - unlink unix sockets
> 
> This should fix the problem.
> 
> Let me know if it works.
> 

Now it works in a "single process" without master, but the "master = 1" still 
not working.

-- 
Łukasz Wróblewski
http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe
http://www.hostowisko.pl/ - Profesjonalny i tani hosting
http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to