aboutsummaryrefslogtreecommitdiff
path: root/security/xinetd
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2004-02-23 14:47:59 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2004-02-23 14:47:59 +0000
commitbbc3e6058ff55f4d4f8d7a799380ac11e6d66a7b (patch)
tree42e93b0b7ec78aa392a6a4f728b35a47372b877b /security/xinetd
parenta210981c0eb9ec518d2b9d51ca0a038d9bb177fc (diff)
downloadports-bbc3e6058ff55f4d4f8d7a799380ac11e6d66a7b.tar.gz
ports-bbc3e6058ff55f4d4f8d7a799380ac11e6d66a7b.zip
Notes
Diffstat (limited to 'security/xinetd')
-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"