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)
27 lines
402 B
Bash
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"
|