Signed-off-by: W. Michael Petullo <mike@flyn.org>
server.upload-dirs = ( "/tmp" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
-#server.username = "www-data"
-#server.groupname = "www-data"
+server.username = "http"
+server.groupname = "www-data"
#server.tag = "lighttpd"
#server.errorlog-use-syslog = "enable"
#server.network-backend = "write"
START=50
start() {
- mkdir -m 0755 -p /var/log/lighttpd
+ user_exists http || user_add http
+ [ -d /var/log/lighttpd ] || {
+ mkdir -m 0775 -p /var/log/lighttpd
+ chgrp www-data /var/log/lighttpd
+ }
service_start /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
}