openbsd-ports/www/yaws/pkg/yaws.rc
2011-03-09 19:37:47 +00:00

21 lines
366 B
Bash

#!/bin/sh
#
# $OpenBSD: yaws.rc,v 1.5 2011/03/09 19:37:47 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/yaws"
daemon_flags="--daemon --conf ${SYSCONFDIR}/yaws/yaws.conf"
. /etc/rc.d/rc.subr
pexp="${LOCALBASE}/lib/erlang/erts.*${TRUEPREFIX}/lib/yaws/ebin -run yaws"
rc_reload() {
${rcexec} "${daemon} --hup"
}
rc_stop() {
${rcexec} "${daemon} --stop"
}
rc_cmd $1