openbsd-ports/net/mfi/pkg/mfi.rc
jasper fe9d5c0b95 rcexec should only really be used in rc_start, unless there's a good reason to
use it elsewhere

prompted by aja@
ok aja@ sthen@
2014-10-03 11:53:23 +00:00

24 lines
371 B
Bash

#!/bin/sh
#
# $OpenBSD: mfi.rc,v 1.2 2014/10/03 11:53:23 jasper Exp $
daemon="${TRUEPREFIX}/share/mfi/lib/ace.jar"
daemon_user="_mfi"
. /etc/rc.d/rc.subr
java="$(${LOCALBASE}/bin/javaPathHelper -c mfi)"
pexp="${java} -jar ${daemon} start"
rc_reload=NO
rc_start() {
${rcexec} "${java} -jar ${daemon} start" &
}
rc_stop() {
${java} -jar ${daemon} stop
}
rc_cmd $1