Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ezstream rc.d startup script on freebsd

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
bbk



Joined: 15 Oct 2005
Posts: 79

PostPosted: Wed Mar 05, 2008 5:17 pm    Post subject: ezstream rc.d startup script on freebsd Reply with quote

hello

i just whould like to share the rc.d script for freebsd which i use:

Code:
#!/bin/sh
#
# PROVIDE: ezstream48
# REQUIRE: DAEMON icecast2
# KEYWORD: shutdown

# Add the following line to /etc/rc.conf to enable `ezstream48'. This requires
# a working configuration in /usr/local/etc/ezstream48.xml.
#
#ezstream48_enable="YES"
#

ezstream48_enable=${ezstream48_enable-"NO"}
ezstream48_flags=${ezstream48_flags-""}
ezstream48_pidfile=${ezstream48_pidfile-"/var/run/ezstream48.pid"}

. /etc/rc.subr

name="ezstream48"
rcvar=`set_rcvar`

command="/usr/local/bin/ezstream"
command_args="1>/dev/null &"

load_rc_config $name
pidfile="${ezstream48_pidfile}"

start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${command} ${ezstream48_flags} ${command_args}"

run_rc_command "$1"


it is quite basic but maybe usefull for someone.

cheers
bbk
_________________
::bbk::

http://audioasyl.net
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber