1d6b4b3f91
s#. %%RC_SUBR%%#. /etc/rc.subr#
23 lines
440 B
Bash
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"
|