summaryrefslogtreecommitdiff
path: root/network/lighttpd/conf/rc.lighttpd
diff options
context:
space:
mode:
Diffstat (limited to 'network/lighttpd/conf/rc.lighttpd')
-rw-r--r--network/lighttpd/conf/rc.lighttpd2
1 files changed, 2 insertions, 0 deletions
diff --git a/network/lighttpd/conf/rc.lighttpd b/network/lighttpd/conf/rc.lighttpd
index 919f6b2104..d2357dfc1a 100644
--- a/network/lighttpd/conf/rc.lighttpd
+++ b/network/lighttpd/conf/rc.lighttpd
@@ -35,6 +35,8 @@ lighttpd_start() {
echo "Already running!"
return
fi
+ mkdir -p $(dirname $PIDFILE)
+ chown -R @USER@:@GROUP@ $(dirname $PIDFILE)
$LIGHTTPD $LIGHTTPD_OPTIONS
}