aboutsummaryrefslogtreecommitdiff
path: root/security/xinetd
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2006-07-12 05:51:47 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2006-07-12 05:51:47 +0000
commit07ac479bee5dfe11dd294776f02855fecbb6b485 (patch)
tree860b792e50ff5ef0854b4b59ff39e22fe9f1d448 /security/xinetd
parentc2de988e108898d00b9431b7526f50181de28512 (diff)
downloadports-07ac479bee5dfe11dd294776f02855fecbb6b485.tar.gz
ports-07ac479bee5dfe11dd294776f02855fecbb6b485.zip
Forgot to add the script itself
Notes
Notes: svn path=/head/; revision=167568
Diffstat (limited to 'security/xinetd')
-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"