aboutsummaryrefslogtreecommitdiff
path: root/irc/thales/files/thales.in
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-08-05 23:19:36 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-08-05 23:19:36 +0000
commit9aac569eaa031e27191a3f4165b389a17f467ad2 (patch)
tree1ed78841e1757014ccc09581c61c3683992d3f77 /irc/thales/files/thales.in
parent47b836bfe5c397deb173a868525d4cba22cbb5fa (diff)
downloadports-9aac569eaa031e27191a3f4165b389a17f467ad2.tar.gz
ports-9aac569eaa031e27191a3f4165b389a17f467ad2.zip
Notes
Diffstat (limited to 'irc/thales/files/thales.in')
-rw-r--r--irc/thales/files/thales.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/irc/thales/files/thales.in b/irc/thales/files/thales.in
new file mode 100644
index 000000000000..6e007ac9e50a
--- /dev/null
+++ b/irc/thales/files/thales.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: thales
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable Thales:
+# thales_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable Thales
+#
+
+. /etc/rc.subr
+
+name="thales"
+rcvar=thales_enable
+
+command="%%PREFIX%%/sbin/thales"
+
+[ -z "$thales_enable" ] && thales_enable="NO"
+
+required_files="%%PREFIX%%/etc/thales.conf"
+
+load_rc_config $name
+run_rc_command "$1"