2011-03-23 08:47:24 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2011-10-09 16:42:33 -04:00
|
|
|
# $OpenBSD: lighttpd.rc,v 1.2 2011/10/09 20:42:33 sthen Exp $
|
2011-03-23 08:47:24 -04:00
|
|
|
|
|
|
|
daemon="${TRUEPREFIX}/sbin/lighttpd"
|
|
|
|
daemon_flags="-f ${SYSCONFDIR}/lighttpd.conf"
|
|
|
|
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
|
2011-10-09 16:42:33 -04:00
|
|
|
rc_reload() {
|
|
|
|
pkill -INT -f "^${pexp}"
|
|
|
|
${rcexec} "${daemon} ${daemon_flags}" >/dev/null
|
|
|
|
}
|
2011-03-23 08:47:24 -04:00
|
|
|
|
|
|
|
rc_cmd $1
|