openbsd-ports/www/yaws/pkg/yaws.rc

21 lines
362 B
Plaintext
Raw Normal View History

#!/bin/sh
#
# $OpenBSD: yaws.rc,v 1.6 2011/12/17 22:01:13 sthen Exp $
daemon="${TRUEPREFIX}/bin/yaws --daemon"
daemon_flags="--conf ${SYSCONFDIR}/yaws/yaws.conf"
. /etc/rc.d/rc.subr
pexp="${LOCALBASE}/lib/erlang/erts.*${TRUEPREFIX}/lib/yaws/ebin -run yaws"
rc_reload() {
2011-03-09 14:37:47 -05:00
${rcexec} "${daemon} --hup"
}
2011-03-09 13:51:48 -05:00
rc_stop() {
${rcexec} "${daemon} --stop"
}
rc_cmd $1