d0164eff5a
- Replace perl wrapper with a new python control script and an RCng startup script [1] - Update to bsd.java.mk 2.0 - Add $FreeBSD$ tags - Tweak pkg-descr to calm portlint - Use provided ${FMT} macro PR: 77989 [1] Submitted by: maintainer [1]
31 lines
506 B
Bash
31 lines
506 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: %%APP_NAME%%
|
|
|
|
#
|
|
# Add the following line to /etc/rc.conf to enable %%APP_NAME%%:
|
|
#
|
|
# %%APP_NAME%%_enable="YES"
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=%%APP_NAME%%
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%PREFIX%%/sbin/%%APP_NAME%%ctl
|
|
command_args="$1"
|
|
pidfile=%%PID_FILE%%
|
|
procname=%%JAVA%%
|
|
|
|
# set defaults
|
|
|
|
%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"}
|
|
%%APP_NAME%%_user=${%%APP_NAME%%_user:-"www"}
|
|
%%APP_NAME%%_group=${%%APP_NAME%%_group:-"www"}
|
|
|
|
load_rc_config ${name}
|
|
run_rc_command "$1"
|