Antonio Pérez wrote:

> server!group = www-data
> server!user = www-data
> 
> My problem here is that this log files are created and owned by
> root.root and 644 permission, so when I try to reopen logs using -USR1
> signal, Cherrokee says that it can't open this files for appending.
> 
> Anyone with this problem?.

Well, I'd say that's the expected behavior, actually.

This is what is happening in your case:

   1.- Cherokee is executed as root, but you want it to drop privileges
   2.- It opens the log files (as root)
   3.- It becomes www-data right after that
   4.- Works for a while, until it receives SIGUSR2
   5.- It tries to reopen the files but it cannot

So, at least the issue is consistent with what you wanted it to do. If 
you want the server to run as www-data, you cannot expect it to be able 
to reopen root files.

What would be for you the expected behavior?

-- 
Greetings, alo
http://www.alobbs.com/
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to