summaryrefslogtreecommitdiff
path: root/security/xinetd/files/xinetd.sh.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'security/xinetd/files/xinetd.sh.tmpl')
-rw-r--r--security/xinetd/files/xinetd.sh.tmpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/security/xinetd/files/xinetd.sh.tmpl b/security/xinetd/files/xinetd.sh.tmpl
new file mode 100644
index 000000000000..1a61c4111a28
--- /dev/null
+++ b/security/xinetd/files/xinetd.sh.tmpl
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: snmpd
+# REQUIRE: DAEMON
+# KEYWORD: FreeBSD
+#
+# Add the following line to /etc/rc.conf to enable xinetd:
+#
+# xinetd_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=xinetd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/xinetd > /dev/null 2>&1
+
+xinetd_enable=${xinetd_enable:-"NO"}
+xinetd_flags=${xinetd_flags:-"-f %%PREFIX%%/etc/xinetd.conf"}
+
+load_rc_config $name
+run_rc_command "$1"