mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
c49d1a3273
We have not checked for this KEYWORD for a long time now, so this is a complete noop, and thus no PORTREVISION bump. Removing it at this point is mostly for pedantic reasons, and partly to avoid perpetuating this anachronism by copy and paste to future scripts.
35 lines
702 B
Bash
35 lines
702 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: icecast2
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: login
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following line to /etc/rc.conf to enable `icecast2'. This requires
|
|
# a working configuration in %%PREFIX%%/etc/icecast.xml.
|
|
#
|
|
#icecast_enable="YES"
|
|
#
|
|
# Make sure the <changeowner> section in your %%PREFIX%%/etc/icecast.xml is
|
|
# not commented out - icecast refuses to run as root.
|
|
#
|
|
|
|
. "%%RC_SUBR%%"
|
|
|
|
name="icecast"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/bin/icecast"
|
|
command_args="1>/dev/null"
|
|
required_files="%%PREFIX%%/etc/$name.xml"
|
|
|
|
# read configuration and set defaults
|
|
load_rc_config "$name"
|
|
: ${icecast_enable="NO"}
|
|
: ${icecast_flags="-c ${required_files} -b"}
|
|
|
|
run_rc_command "$1"
|