On Mon, Sep 20, 2010 at 11:48 AM, Wu <[email protected]> wrote: > Thnx Diego, upgrade time! >> >> Now Cherokee runs as www:www user by default, and the permissions for >> logfiles are >> adjusted automatically at the end of installation, so you need to >> fiddle with chmod anymore. > > This is nice too, I'll take a look. So far I was creating a > /var/log/cherokee directory, then using chown to give www:www write access > and then modifying the cherokee configuration to put logs inside that > directory (perhaps the port could be instructed to make cherokee write log > files by default in such a directory, I prefer that than having multiple > cherokee.* log files all over the place). >
Yeah, I considered that too, but I felt inclined to not creating a directory in /var/log after looking at how the other daemons have done it (cd /var/log && ls -la). I don't see any bad in creating a directory in /var/log/, I just tried to follow that informal convention for default installations. I also feared that it would be needed to patch some files in cherokee sources in order to make cherokee pick the /var/log/cherokee/ dir by default. eg in cherokee.conf.sample.pre: -vserver!1!logger!access!filename = %localstatedir%/log/cherokee.access +vserver!1!logger!access!filename = %localstatedir%/log/cherokee/access.log I've flagrantly violated another informal convention: almost every logfile in my system is owned by 'root:wheel', Cherokee and Squid being the only exception right now. Fortunately Alvaro mentioned the changeset 5512 [1] so I want to borrow some words from Hannibal Smith: I love it when a plan comes together! [1] http://svn.cherokee-project.com/changeset/5512 _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
