freebsd-ports/audio/linux-shoutcast/files/shoutcast.sh.in
Ion-Mihai Tetcu 766506c513 Shoutcast is Nullsoft's Winamp-based streaming audio server. It isn't
an open source software, but freely available for i386 versions of
FreeBSD 4.X/5.X and Linux. This port installs the Linux binary.

WWW: http://www.shoutcast.com

PR:		ports/95514
Submitted by:	Gabor Kovesdan
Approved by:	lawrance(mentor, implicit)
2006-06-05 10:39:01 +00:00

27 lines
402 B
Bash

#!/bin/sh
#
# PROVIDE: shoutcast
# REQUIRE: LOGIN
# BEFORE:
# KEYWORD: shutdown
. /etc/rc.subr
name="shoutcast"
rcvar=`set_rcvar`
start_cmd="shoutcast_startcmd"
stop_cmd="shoutcast_stopcmd"
shoutcast_startcmd ()
{
su shoutcast -c '%%PREFIX%%/sbin/sc_serv %%PREFIX%%/etc/shoutcast/sc_serv.conf & >/dev/null 2>&1'
}
shoutcast_stopcmd ()
{
killall sc_serv
}
load_rc_config $name
run_rc_command "$1"