aboutsummaryrefslogtreecommitdiff
path: root/www/webobjects/files/wotaskd.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/webobjects/files/wotaskd.sh.in')
-rw-r--r--www/webobjects/files/wotaskd.sh.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/www/webobjects/files/wotaskd.sh.in b/www/webobjects/files/wotaskd.sh.in
index cee2a604357b..e6afe23937b8 100644
--- a/www/webobjects/files/wotaskd.sh.in
+++ b/www/webobjects/files/wotaskd.sh.in
@@ -1,17 +1,25 @@
#!/bin/sh
+
# $FreeBSD$
+#
# PROVIDE: wotaskd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
-
+#
# Define these wotaskd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
+
+. /etc/rc.subr
+
name="wotaskd"
+rcvar=wotaskd_enable
+
+load_rc_config "$name"
+load_rc_config NEXT
wotaskd_enable="${wotaskd_enable-"NO"}"
wotaskd_user="${wotaskd_user-%%USER%%}"
@@ -19,12 +27,6 @@ wotaskd_pidfile="${wotaskd_pidfile:-/var/run/webobjects/${name}.pid}"
wotaskd_logfile="${wotaskd_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="${wotaskd_pidfile}"
logfile="${wotaskd_logfile}"
runuser="${wotaskd_user}"