#!/bin/sh
#
# $NetBSD: icecast.sh,v 1.1.1.1 2004/01/08 20:48:46 xtraeme Exp $
#
# PROVIDE: icecast
# REQUIRE: DAEMON LOGIN network


name="icecast"
command="/usr/pkg/bin/${name}"
mainconfigfile="/usr/pkg/etc/icecast/${name}.conf"
icecast_flags="-c ${mainconfigfile} -d /usr/pkg/etc/icecast -b"
sig_stop="KILL"


. /etc/rc.subr


pidfile="/var/run/${name}.pid"
required_files="${mainconfigfile}"


load_rc_config $name
run_rc_command "$1"


if [ "$1" != "stop" ]; then
	echo $(check_process $command) > $pidfile
fi
