aboutsummaryrefslogtreecommitdiff
path: root/irc/unreal/files/unrealircd.in
diff options
context:
space:
mode:
Diffstat (limited to 'irc/unreal/files/unrealircd.in')
-rw-r--r--irc/unreal/files/unrealircd.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/irc/unreal/files/unrealircd.in b/irc/unreal/files/unrealircd.in
new file mode 100644
index 000000000000..9781f577850d
--- /dev/null
+++ b/irc/unreal/files/unrealircd.in
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: unrealircd
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable Unreal IRCd:
+# unrealircd_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable Unreal IRCd
+#
+
+. /etc/rc.subr
+
+name="unrealircd"
+rcvar=unrealircd_enable
+
+command="%%PREFIX%%/libexec/ircd"
+pidfile="%%RUNDIR%%/ircd.pid"
+
+[ -z "$unrealircd_enable" ] && unrealircd_enable="NO"
+
+required_dirs="%%RUNDIR%% %%RUNDIR%%/tmp"
+required_files="%%PREFIX%%/etc/Unreal/unrealircd.conf"
+
+load_rc_config $name
+run_rc_command "$1"