diff options
Diffstat (limited to 'main/lighttpd/lighttpd.initd')
-rw-r--r-- | main/lighttpd/lighttpd.initd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/lighttpd/lighttpd.initd b/main/lighttpd/lighttpd.initd index 380ed7ecea..614cb21326 100644 --- a/main/lighttpd/lighttpd.initd +++ b/main/lighttpd/lighttpd.initd @@ -4,6 +4,7 @@ # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.initd,v 1.21 2012/01/08 20:45:46 hwoarang Exp $ extra_started_commands="reload graceful" +required_files=$LIGHTTPD_CONF depend() { need net @@ -22,14 +23,14 @@ checkconfig() { if [ -z "${LIGHTTPD_PID}" ] ; then ewarn "server.pid-file variable in ${LIGHTTPD_CONF}" ewarn "is not set. Falling back to lighttpd.pid" - LIGHTTPD_PID="/var/run/lighttpd.pid" + LIGHTTPD_PID="/run/lighttpd.pid" fi /usr/sbin/lighttpd -t -f ${LIGHTTPD_CONF} >/dev/null } start() { checkconfig || return 1 - checkpath -d -q -m 0750 -o lighttpd:lighttpd /var/run/lighttpd/ + checkpath -d -q -m 0750 -o lighttpd:lighttpd /run/lighttpd/ ebegin "Starting lighttpd" start-stop-daemon --start --quiet --exec /usr/sbin/lighttpd \ |