pkgsrc/chat/ircu/files/ircd.sh
grant df824fbe2a Updated ircu to 2.10.11.04.
List of changes since 2.10.04 is very large and code-oriented. The
authors seem to not maintain a user digestable list of changes.
See the ChangeLog for the full list of changes if you insist :)

Updated provided by Adrian Portelli in PR pkg/20531, with some changes
by me.
2003-03-01 05:22:22 +00:00

31 lines
582 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: ircd.sh,v 1.1 2003/03/01 05:22:23 grant Exp $
#
# PROVIDE: ircd
# REQUIRE: DAEMON
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="ircd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
required_files="@PKG_SYSCONFDIR@/ircd.conf"
pidfile="/var/ircd/${name}.pid"
command_args="-d /var/ircd -f ${required_files}"
ircd_user="@IRCD_USER@"
if [ -f /etc/rc.subr ]
then
load_rc_config $name
eval [ -z "\$${rcvar}" ] && eval ${rcvar}=NO
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${ircd_flags} ${command_args}
fi