bbk

Joined: 15 Oct 2005 Posts: 79
|
Posted: Wed Mar 05, 2008 5:17 pm Post subject: ezstream rc.d startup script on freebsd |
|
|
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 |
|