aboutsummaryrefslogtreecommitdiff
path: root/audio/icecast2
diff options
context:
space:
mode:
authorSahil Tandon <sahil@FreeBSD.org>2010-04-24 20:45:05 +0000
committerSahil Tandon <sahil@FreeBSD.org>2010-04-24 20:45:05 +0000
commitfac7eaa8f88f351b2449a698cf46e3268ab8675c (patch)
tree4d211b554dc3e09bb0385a2e8d95c7f9c3ab16a0 /audio/icecast2
parent2e3181354856e3c602a17ec8ee2f4a3c63156aec (diff)
downloadports-fac7eaa8f88f351b2449a698cf46e3268ab8675c.tar.gz
ports-fac7eaa8f88f351b2449a698cf46e3268ab8675c.zip
Notes
Diffstat (limited to 'audio/icecast2')
-rw-r--r--audio/icecast2/files/icecast2.sh.in16
1 files changed, 11 insertions, 5 deletions
diff --git a/audio/icecast2/files/icecast2.sh.in b/audio/icecast2/files/icecast2.sh.in
index 6c85793a0bc2..6d3edb2a5e80 100644
--- a/audio/icecast2/files/icecast2.sh.in
+++ b/audio/icecast2/files/icecast2.sh.in
@@ -8,12 +8,16 @@
# 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.
+# Add the following line to /etc/rc.conf to enable `icecast2'.
#
#icecast_enable="YES"
#
-# Make sure the <changeowner> section in your %%PREFIX%%/etc/icecast.xml is
+# To specify a non-default configuration file, set icecast_config
+# in /etc/rc.conf:
+#
+#icecast_config="%%PREFIX%%/etc/icecast.xml"
+#
+# Make sure the <changeowner> section in your configuration file is
# not commented out - icecast refuses to run as root.
#
@@ -24,11 +28,13 @@ rcvar=`set_rcvar`
command="%%PREFIX%%/bin/icecast"
command_args="-b 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}"}
+: ${icecast_config="%%PREFIX%%/etc/${name}.xml"}
+: ${icecast_flags="-c ${icecast_config}"}
+
+required_files="${icecast_config}"
run_rc_command "$1"