From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Date: Fri, 23 Mar 2012 10:07:38 +0100 Subject: [Buildroot] [PATCH 4/5] Fix installation for the lighttpd package In-Reply-To: <87mx781ehe.fsf@macbook.be.48ers.dk> References: <572e22d29e9c195b39b38256f7ca024eb7e54110.1332408273.git.maxime.ripard@free-electrons.com> <87mx781ehe.fsf@macbook.be.48ers.dk> Message-ID: <4F6C3D5A.5040008@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi, Le 22/03/2012 23:02, Peter Korsgaard a ?crit : >>>>>> "Maxime" == Maxime Ripard writes: > > Hi, > > Maxime> ++++ lighttpd-1.4.30/doc/config/lighttpd.conf 2012-03-22 09:55:31.402424839 +0100 > > Please add a git-style description of what the patch does and your > signed-off-by. Will do. > Maxime> +@@ -13,7 +13,7 @@ > Maxime> + ## if you add a variable here. Add the corresponding variable in the > Maxime> + ## chroot example aswell. > Maxime> + ## > Maxime> +-var.log_root = "/var/log/lighttpd" > Maxime> ++var.log_root = "/var/log" > Maxime> + var.server_root = "/srv/www" > Maxime> + var.state_dir = "/var/run" > Maxime> + var.home_dir = "/var/lib/lighttpd" > Maxime> +@@ -90,7 +90,7 @@ > Maxime> + ## > Maxime> + ## Use IPv6? > Maxime> + ## > Maxime> +-server.use-ipv6 = "enable" > Maxime> ++# server.use-ipv6 = "enable" > Maxime> + > Maxime> + ## > Maxime> + ## bind to a specific IP > Maxime> +@@ -101,8 +101,8 @@ > Maxime> + ## Run as a different username/groupname. > Maxime> + ## This requires root permissions during startup. > Maxime> + ## > Maxime> +-server.username = "lighttpd" > Maxime> +-server.groupname = "lighttpd" > Maxime> ++# server.username = "lighttpd" > Maxime> ++# server.groupname = "lighttpd" > Maxime> + > Maxime> + ## > Maxime> + ## enable core files. > Maxime> +@@ -138,7 +138,7 @@ > Maxime> + ## > Maxime> + ## Path to the error log file > Maxime> + ## > Maxime> +-server.errorlog = log_root + "/error.log" > Maxime> ++server.errorlog = log_root + "/lighttpd-error.log" > > Why? The access log is still called access.log, so why rename this? I guess I missed access log :) I renamed it because I found having a file called "error.log" in /var/log was way too generic... I changed the access log path as well. > Maxime> + > Maxime> + ## > Maxime> + ## If you want to log to syslog you have to unset the > Maxime> +@@ -188,7 +188,7 @@ > Maxime> + ## linux-sendfile - is recommended for small files. > Maxime> + ## writev - is recommended for sending many large files > Maxime> + ## > Maxime> +-server.network-backend = "linux-sendfile" > Maxime> ++server.network-backend = "writev" > > Why? > I'm not sure really why, but in our current configuration, lighttpd refuses to boot if the backend is set to "linux-sendfile", while it starts with writev. -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com