diff options
Diffstat (limited to 'irc/irc/files/ircd.in')
-rw-r--r-- | irc/irc/files/ircd.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/irc/irc/files/ircd.in b/irc/irc/files/ircd.in new file mode 100644 index 000000000000..5e1ff858b4c6 --- /dev/null +++ b/irc/irc/files/ircd.in @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ircd +# REQUIRE: NETWORKING SERVERS +# BEFORE: DAEMON +# KEYWORD: shutdown + +# +# Add the following line to /etc/rc.conf to enable ircd: +# ircd_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable ircd. +# + +. /etc/rc.subr + +name="ircd" +rcvar=ircd_enable + +load_rc_config $name + +: ${ircd_enable="NO"} + +pidfile="%%PREFIX%%/var/run/ircd.pid" +command="%%PREFIX%%/sbin/ircd" + +run_rc_command "$1" + |