1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/www/resin2/files/resin.sh.in
Herve Quiroz a916dd1eb6 - Update to 2.1.16 [1]
- Replace perl wrapper with a new python control script and an RCng startup
  script [1]
- Use standard tab length [1]
- Update to bsd.java.mk 2.0
- Add $FreeBSD$ tags

PR:		77988 [1]
Submitted by:	maintainer [1]
2005-02-24 22:27:53 +00:00

32 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"