2132e022a6
- let HEAD for 0-byte files return the Content-Length, from upstream via Brad - implement reloads (graceful restart) in rc, from Ben Lovett via Brad
16 lines
283 B
Bash
Executable File
16 lines
283 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $OpenBSD: lighttpd.rc,v 1.2 2011/10/09 20:42:33 sthen Exp $
|
|
|
|
daemon="${TRUEPREFIX}/sbin/lighttpd"
|
|
daemon_flags="-f ${SYSCONFDIR}/lighttpd.conf"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_reload() {
|
|
pkill -INT -f "^${pexp}"
|
|
${rcexec} "${daemon} ${daemon_flags}" >/dev/null
|
|
}
|
|
|
|
rc_cmd $1
|