[Buildroot] [PATCH 4/5] Fix installation for the lighttpd package
Maxime Ripard
maxime.ripard at free-electrons.com
Fri Mar 23 09:07:38 UTC 2012
Hi,
Le 22/03/2012 23:02, Peter Korsgaard a écrit :
>>>>>> "Maxime" == Maxime Ripard <maxime.ripard at free-electrons.com> 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
More information about the buildroot
mailing list