aboutsummaryrefslogtreecommitdiff
path: root/audio/icecast2/files/icecast2.sh.in
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2005-06-22 20:08:28 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2005-06-22 20:08:28 +0000
commit3554ea623632a018495abb707e9629169ba62be3 (patch)
tree1a0ba893f3e905502cb2a848e0ed6f838d0a5eaf /audio/icecast2/files/icecast2.sh.in
parentfdca13ddff7191d9124f7b36c7424e7b120bc6e6 (diff)
Notes
Diffstat (limited to 'audio/icecast2/files/icecast2.sh.in')
-rw-r--r--audio/icecast2/files/icecast2.sh.in16
1 files changed, 9 insertions, 7 deletions
diff --git a/audio/icecast2/files/icecast2.sh.in b/audio/icecast2/files/icecast2.sh.in
index 14e6b6863b59..accb36722e61 100644
--- a/audio/icecast2/files/icecast2.sh.in
+++ b/audio/icecast2/files/icecast2.sh.in
@@ -8,10 +8,13 @@
# BEFORE: login
# KEYWORD: FreeBSD shutdown
-# Add the following line to /etc/rc.conf to enable `icecast2':
+# Add the following line to /etc/rc.conf to enable `icecast2'. This requires
+# a working configuration in %%PREFIX%%/etc/icecast.xml.
#
#icecast_enable="YES"
-#icecast_flags=""
+#
+# Make sure the <changeowner> section in your %%PREFIX%%/etc/icecast.xml is
+# not commented out - icecast refuses to run as root.
#
. "%%RC_SUBR%%"
@@ -19,14 +22,13 @@
name="icecast"
rcvar=`set_rcvar`
-command="/usr/local/bin/icecast"
-command_args="1>/dev/null 2>&1"
-pidfile="/usr/local/share/icecast/$name.pid"
-required_files="/usr/local/etc/$name.xml"
+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=""}
+: ${icecast_flags="-c ${required_files} -b"}
run_rc_command "$1"