freebsd-ports/www/cocoon/files/cocoon.sh
Greg Lewis 68dfdf88f4 . Major update to 2.1.5.
. Assign maintainership to the submitter.

PR:		66253
Submitted by:	Jean-Baptiste Quenot <jb.quenot@caraldi.com>
2004-07-01 22:30:19 +00:00

31 lines
503 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"