aboutsummaryrefslogtreecommitdiff
path: root/www/wwwoffle/files/wwwoffled.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/wwwoffle/files/wwwoffled.in')
-rw-r--r--www/wwwoffle/files/wwwoffled.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/www/wwwoffle/files/wwwoffled.in b/www/wwwoffle/files/wwwoffled.in
new file mode 100644
index 000000000000..53b60daf1068
--- /dev/null
+++ b/www/wwwoffle/files/wwwoffled.in
@@ -0,0 +1,36 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: wwwoffled
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# Define these wwwoffled_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/wwwoffled
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+wwwoffled_enable=${wwwoffled_enable-"NO"}
+wwwoffled_flags=${wwwoffled_flags-""}
+wwwoffled_pidfile=${wwwoffled_pidfile-"/var/run/wwwoffled.pid"}
+wwwoffled_conffile="%%PREFIX%%/etc/wwwoffle.conf"
+
+. /etc/rc.subr
+
+name="wwwoffled"
+rcvar=wwwoffled_enable
+command="%%PREFIX%%/sbin/wwwoffled"
+extra_commands="reload"
+
+load_rc_config $name
+
+pidfile="${wwwoffled_pidfile}"
+command_args="-p > ${pidfile} 2> /dev/null"
+required_files="${wwwoffled_conffile}"
+stop_postcmd="/bin/rm -f ${pidfile}"
+reload_cmd="%%PREFIX%%/bin/wwwoffle -config"
+
+run_rc_command "$1"