summaryrefslogtreecommitdiff
path: root/net/msend/files/mesgd.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/msend/files/mesgd.in')
-rw-r--r--net/msend/files/mesgd.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/net/msend/files/mesgd.in b/net/msend/files/mesgd.in
new file mode 100644
index 000000000000..a775cc2f01d3
--- /dev/null
+++ b/net/msend/files/mesgd.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: mesgd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable mesgd:
+#
+# mesgd_enable=(bool): Set it to "YES" to enable mesgd
+#
+# and add appropriate mesgd_flags.
+#
+
+. /etc/rc.subr
+
+name="mesgd"
+rcvar=mesgd_enable
+
+load_rc_config $name
+
+: ${mesgd_enable="NO"}
+
+command=%%PREFIX%%/sbin/${name}
+
+run_rc_command "$1"