pkgsrc-wip/icecast/files/icecast.sh

30 lines
517 B
Bash
Raw Normal View History

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: icecast.sh,v 1.1.1.1 2004/01/02 19:38:06 poppnk Exp $
#
# PROVIDE: icecast
# REQUIRE: DAEMON LOGIN network
name="icecast"
command="@PREFIX@/bin/${name}"
mainconfigfile="@PKG_SYSCONFDIR@/${name}.conf"
icecast_flags="-c ${mainconfigfile} -d @PKG_SYSCONFDIR@ -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