summaryrefslogtreecommitdiff
path: root/security/trousers/files/tcsd.in
diff options
context:
space:
mode:
Diffstat (limited to 'security/trousers/files/tcsd.in')
-rw-r--r--security/trousers/files/tcsd.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/security/trousers/files/tcsd.in b/security/trousers/files/tcsd.in
new file mode 100644
index 000000000000..0959bbe20225
--- /dev/null
+++ b/security/trousers/files/tcsd.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: tcsd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# tcsd_enable (bool): Set to NO by default.
+# Set it to YES to enable tcsd.
+
+. /etc/rc.subr
+
+name=tcsd
+rcvar=`set_rcvar`
+command="%%PREFIX%%/sbin/${name}"
+required_files="%%PREFIX%%/etc/${name}.conf"
+
+load_rc_config $name
+
+: tcsd_enable=${tcsd_enable-"NO"}
+
+run_rc_command "$1"