pkgsrc-wip/icecast/files/icecast.sh
pancake ;) 3aa539cdd5 Initial import of icecast
*************
This package must replace the original audio/icecast, because, the other
one doesn't works. I add some patches to make it more secure and allow
new features.
*************


Icecast is an Internet based broadcasting system based on the Mpeg
Layer III streaming technology. It is, however, not limited to
streaming mp3 files.  It was originally inspired by Nullsoft's
Shoutcast and also mp3serv by Scott Man ley.

This version implements two security fixes ( >= patches/patch-af )
written by <pancake AT phreaker DOT net>. For more information
please visit: http://pancake.host.sk/altres/src/
2004-01-02 19:38:06 +00:00

29 lines
517 B
Bash

#!@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