freebsd-ports/irc/ircservices/files/ircservices.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

23 lines
440 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: ircservices
# REQUIRE: LOGIN
# KEYWORDS: nojail shutdown
. /etc/rc.subr
name=ircservices
rcvar=${name}_enable
command="%%PREFIX%%/sbin/${name}"
command_args="-dir=%%PREFIX%%/etc/ircservices"
pidfile="/var/run/${name}.pid"
required_files="%%PREFIX%%/etc/ircservices/ircservices.conf \
%%PREFIX%%/etc/ircservices/modules.conf"
load_rc_config ${name}
: ${ircservices_enable="NO"}
run_rc_command "$1"