ajacoutot 39b5277db9 Revamp that port:
* don't use an /etc/default/activemq config file; it's too generic and
linuxish -- we'll use /etc/activemqrc
* no need to install the wrappers since we have rc scripts
* properly sample *all* configuration files
* run as unpriviledged user: _activemq by default
* remove useless README
* properly remove data files at @extraunexec time
* proper rc_stop in the rc script
* take MAINTAINER

ok jasper@ on a previous submission
2013-03-13 16:30:11 +00:00

25 lines
533 B
Bash

#!/bin/sh
#
# $OpenBSD: activemq.rc,v 1.3 2013/03/13 16:30:11 ajacoutot Exp $
daemon="${TRUEPREFIX}/activemq/bin/activemq"
daemon_user="_activemq"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_start() {
${rcexec} "PATH=$PATH:$(dirname $(${LOCALBASE}/bin/javaPathHelper -c apache-activemq)) ${daemon} start"
}
rc_check() {
PATH=$PATH:$(dirname $(${LOCALBASE}/bin/javaPathHelper -c apache-activemq)) ${daemon} status
}
rc_stop() {
PATH=$PATH:$(dirname $(${LOCALBASE}/bin/javaPathHelper -c apache-activemq)) ${daemon} stop
}
rc_cmd $1