aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-07-12 13:51:47 +0800
committersem <sem@FreeBSD.org>2006-07-12 13:51:47 +0800
commit4b64f308afdf7bfacf9938caaa6cbd023e8c64d0 (patch)
tree32e665649b9d759097ce373c3d390e6b28a3be0a /security
parentac4ccfcca078d4487671b461ed3e836b5cdbcbe8 (diff)
downloadfreebsd-ports-gnome-4b64f308afdf7bfacf9938caaa6cbd023e8c64d0.tar.gz
freebsd-ports-gnome-4b64f308afdf7bfacf9938caaa6cbd023e8c64d0.tar.zst
freebsd-ports-gnome-4b64f308afdf7bfacf9938caaa6cbd023e8c64d0.zip
Forgot to add the script itself
Diffstat (limited to 'security')
-rw-r--r--security/xinetd/files/xinetd.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/security/xinetd/files/xinetd.in b/security/xinetd/files/xinetd.in
new file mode 100644
index 000000000000..25de8bfc4ed4
--- /dev/null
+++ b/security/xinetd/files/xinetd.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: xinetd
+# REQUIRE: DAEMON
+#
+# 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"