aboutsummaryrefslogtreecommitdiff
path: root/mail/whoson/files/whoson.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/whoson/files/whoson.sh.in')
-rw-r--r--mail/whoson/files/whoson.sh.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/whoson/files/whoson.sh.in b/mail/whoson/files/whoson.sh.in
new file mode 100644
index 000000000000..aafc8c12035e
--- /dev/null
+++ b/mail/whoson/files/whoson.sh.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: whoson
+# REQUIRE: NETWORKING
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable frox:
+#
+#whosond="YES"
+#
+
+. %%RC_SUBR%%
+
+name=whosond
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/${name}
+required_files=%%PREFIX%%/etc/whoson.conf
+
+# set defaults
+
+whosond_enable=${whosond_enable:-"NO"}
+
+load_rc_config $name
+run_rc_command "$1"