diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-12-10 21:41:23 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-12-10 21:41:23 +0000 |
commit | f21956113e6bc4ac17272f62cd8fac37270d321c (patch) | |
tree | da329f2292d08bc535bd21f51b17c70409f26b48 /audio/icecast2/files | |
parent | aaf90d413df8860d8e1ffa33a403ce7005430c26 (diff) | |
download | ports-f21956113e6bc4ac17272f62cd8fac37270d321c.tar.gz ports-f21956113e6bc4ac17272f62cd8fac37270d321c.zip |
Notes
Diffstat (limited to 'audio/icecast2/files')
-rw-r--r-- | audio/icecast2/files/icecast2.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/audio/icecast2/files/icecast2.sh b/audio/icecast2/files/icecast2.sh new file mode 100644 index 000000000000..f66e1c5f28f7 --- /dev/null +++ b/audio/icecast2/files/icecast2.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/audio/icecast2/files/Attic/icecast2.sh,v 1.1 2004-12-10 21:41:23 lofi Exp $ +# + +# PROVIDE: icecast2 +# REQUIRE: DAEMON +# BEFORE: login +# KEYWORD: FreeBSD shutdown + +# Add the following line to /etc/rc.conf to enable `icecast2': +# +#icecast_enable="YES" +#icecast_flags="" +# + +. "/etc/rc.subr" + +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" + +# read configuration and set defaults +load_rc_config "$name" +: ${icecast_enable="NO"} +: ${icecast_flags=""} + +run_rc_command "$1" |