#!/bin/sh
#
# $FreeBSD: ports/irc/ptlink-services/files/ptlink-services.sh.in,v 1.2 2005/10/03 13:14:54 mnag Exp $
#

# PROVIDE: services
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON

# Add the following line(s) to /etc/rc.conf:
# services_enable (bool): Set to "NO" by default, set it to "YES" to enable services
# services_user (str): Default to "ircd"

services_enable=${services_enable-"NO"}
services_user=${services_user-"ircd"}

. %%RC_SUBR%%

name="services"
rcvar=`set_rcvar`
pidfile="/var/run/ircsvs.pid"
command="%%PREFIX%%/bin/ircsvs"

load_rc_config "$name"
run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1