summaryrefslogtreecommitdiff
path: root/package/lighttpd/files/lighttpd.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/lighttpd/files/lighttpd.init')
-rw-r--r--package/lighttpd/files/lighttpd.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/lighttpd/files/lighttpd.init b/package/lighttpd/files/lighttpd.init
index 8e2d897af..fa2b203ee 100644
--- a/package/lighttpd/files/lighttpd.init
+++ b/package/lighttpd/files/lighttpd.init
@@ -10,7 +10,7 @@ autostart)
exec sh $0 start
;;
start)
- [ ! -d /srv/www ] && echo "You need to create /srv/www/htdocs"
+ [ ! -d /srv/www ] && echo "You need to create /srv/www/htdocs" && exit 1
mkdir -p /var/log/lighttpd && chown lighttpd.lighttpd /var/log/lighttpd
/usr/sbin/lighttpd $lighttpd_flags
;;