summaryrefslogtreecommitdiff
path: root/www/cocoon/files/cocoon.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/cocoon/files/cocoon.in')
-rw-r--r--www/cocoon/files/cocoon.in43
1 files changed, 0 insertions, 43 deletions
diff --git a/www/cocoon/files/cocoon.in b/www/cocoon/files/cocoon.in
deleted file mode 100644
index 7e292e0e6f32..000000000000
--- a/www/cocoon/files/cocoon.in
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: %%APP_NAME%%
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Add the following line to /etc/rc.conf to enable %%APP_NAME%%:
-#
-# %%APP_NAME%%_enable="YES"
-#
-
-. /etc/rc.subr
-
-name=%%APP_NAME%%
-rcvar=%%APP_NAME%%_enable
-
-command="%%PREFIX%%/sbin/%%APP_NAME%%ctl"
-command_args="start"
-pidfile=%%PID_FILE%%
-
-# 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}
-
-if test -n "${%%APP_NAME%%_java_version}" ; then
- JAVA_HOME=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
- procname=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
-else
- JAVA_HOME=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2)
- procname=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2)
-fi
-
-export JAVA_HOME
-
-run_rc_command "$1"