summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/lighttpd/run
blob: f9c574db5564fe32ae1561c2921c5449e1d8a9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions
stat_runit "Starting lighttpd"

if [ ! -d /var/run/lighttpd ] ; then
   mkdir -p /var/run/lighttpd
   chown http /var/run/lighttpd
fi

# Using -angel to start lighttpd allows lighttpd to accept signals
exec /usr/sbin/lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf