summaryrefslogtreecommitdiff
path: root/www/webobjects/files/JavaMonitor.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/webobjects/files/JavaMonitor.sh.in')
-rw-r--r--www/webobjects/files/JavaMonitor.sh.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/www/webobjects/files/JavaMonitor.sh.in b/www/webobjects/files/JavaMonitor.sh.in
index 4801c93d9bf5..a3b9cdcba75a 100644
--- a/www/webobjects/files/JavaMonitor.sh.in
+++ b/www/webobjects/files/JavaMonitor.sh.in
@@ -1,17 +1,25 @@
#!/bin/sh
+
# $FreeBSD$
+#
# PROVIDE: JavaMonitor
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
-
+#
# Define these JavaMonitor_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
+
+. /etc/rc.subr
+
name="JavaMonitor"
+rcvar=JavaMonitor_enable
+
+load_rc_config "$name"
+load_rc_config NEXT
JavaMonitor_enable="${JavaMonitor_enable-"NO"}"
JavaMonitor_user="${JavaMonitor_user-%%USER%%}"
@@ -20,12 +28,6 @@ JavaMonitor_pidfile="${JavaMonitor_pidfile:-/var/run/webobjects/${name}.pid}"
JavaMonitor_logfile="${JavaMonitor_logfile:-/var/log/webobjects/${name}.log}"
NEXT_ROOT="${NEXT_ROOT-%%PREFIX%%/%%NEXT_ROOT%%}"
-. /etc/rc.subr
-rcvar=`set_rcvar`
-
-load_rc_config "$name"
-load_rc_config NEXT
-
pidfile="${JavaMonitor_pidfile}"
logfile="${JavaMonitor_logfile}"
runuser="${JavaMonitor_user}"