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