aboutsummaryrefslogtreecommitdiff
path: root/net/rinetd/files/rinetd.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/rinetd/files/rinetd.in')
-rw-r--r--net/rinetd/files/rinetd.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/rinetd/files/rinetd.in b/net/rinetd/files/rinetd.in
new file mode 100644
index 000000000000..16501c77263a
--- /dev/null
+++ b/net/rinetd/files/rinetd.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: rinetd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable rinetd:
+# rinetd_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable rinetd
+# rinetd_flags (str): Set to "" by default.
+# Extra flags passed to start command
+
+. /etc/rc.subr
+
+name="rinetd"
+rcvar=rinetd_enable
+
+load_rc_config $name
+
+: ${rinetd_enable="NO"}
+
+command="%%PREFIX%%/sbin/rinetd"
+pidfile="/var/run/rinetd.pid"
+
+run_rc_command "$1"