diff options
Diffstat (limited to 'package/lighttpd/files/lighttpd.init')
-rw-r--r-- | package/lighttpd/files/lighttpd.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/lighttpd/files/lighttpd.init b/package/lighttpd/files/lighttpd.init index cb0a117d9..8e2d897af 100644 --- a/package/lighttpd/files/lighttpd.init +++ b/package/lighttpd/files/lighttpd.init @@ -1,7 +1,6 @@ #!/bin/sh #PKG lighttpd #INIT 60 - . /etc/rc.conf case $1 in @@ -11,6 +10,8 @@ autostart) exec sh $0 start ;; start) + [ ! -d /srv/www ] && echo "You need to create /srv/www/htdocs" + mkdir -p /var/log/lighttpd && chown lighttpd.lighttpd /var/log/lighttpd /usr/sbin/lighttpd $lighttpd_flags ;; stop) |