diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2005-06-22 20:08:28 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2005-06-22 20:08:28 +0000 |
commit | 3554ea623632a018495abb707e9629169ba62be3 (patch) | |
tree | 1a0ba893f3e905502cb2a848e0ed6f838d0a5eaf /audio/icecast2/files | |
parent | - Add iwi-firmware, Intel Pro/Wireless Lan 2200 firmware to be used (diff) |
Fix various issues with the rc-script and adjust pkg-message accordingly.
Notes
Notes:
svn path=/head/; revision=137891
Diffstat (limited to 'audio/icecast2/files')
-rw-r--r-- | audio/icecast2/files/icecast2.sh.in | 16 | ||||
-rw-r--r-- | audio/icecast2/files/pkg-message.in | 17 |
2 files changed, 26 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" diff --git a/audio/icecast2/files/pkg-message.in b/audio/icecast2/files/pkg-message.in new file mode 100644 index 000000000000..ee11554da5d8 --- /dev/null +++ b/audio/icecast2/files/pkg-message.in @@ -0,0 +1,17 @@ +To start icecast at system boot, customize +%%PREFIX%%/etc/icecast.xml.sample to your environment and add: + +icecast_enable="YES" + +to /etc/rc.conf. See the icecast -h command for optional additional +flags. To specify an alternative config file for example add: + +icecast_flags="-c /path/to/your/configuration.xml" + +********************************************************************** +** Make sure the <changeowner> section in your configuration file ** +** is NOT commented out. Icecast will refuse to run as root. ** +** ** +** Also make sure that the user you choose is able to write to your ** +** configured log directory, otherwise icecast will refuse to run. ** +********************************************************************** |