summaryrefslogtreecommitdiff
path: root/network/lighttpd/conf
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
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')
-rw-r--r--network/lighttpd/conf/lighttpd.logrotate1
-rw-r--r--network/lighttpd/conf/rc.lighttpd2
2 files changed, 3 insertions, 0 deletions
diff --git a/network/lighttpd/conf/lighttpd.logrotate b/network/lighttpd/conf/lighttpd.logrotate
index 65c13f36c8..7001f869bd 100644
--- a/network/lighttpd/conf/lighttpd.logrotate
+++ b/network/lighttpd/conf/lighttpd.logrotate
@@ -1,4 +1,5 @@
/var/log/lighttpd/*.log {
+ su @USER@ @GROUP@
daily
missingok
copytruncate
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
}