summaryrefslogtreecommitdiff
path: root/network/lighttpd/conf/rc.lighttpd
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-09-12 16:32:43 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-12 18:05:13 -0500
commit09bf0257aa05ef1d8767bf9e83c310785fc0ccf4 (patch)
tree2e982204e6148004ce59afb904e365ad49933c42 /network/lighttpd/conf/rc.lighttpd
parentcb5f327002eb0d9f866c6d3c9f203ed8304f7b20 (diff)
downloadslackbuilds-09bf0257aa05ef1d8767bf9e83c310785fc0ccf4.tar.gz
network/lighttpd: Fixed logrotate script (added "su" directive)
This commit includes a few other associated changes. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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
}