#! /bin/sh ### BEGIN INIT INFO # Provides: cvlc instance # Required-Start: $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: start cvlc listening to stream ### END INIT INFO PATH=/sbin:/usr/sbin:/bin:/usr/bin . /lib/init/vars.sh . /lib/lsb/init-functions STREAM="http://localhost:8000/dah_bib.m3u" do_start() { [ "$VERBOSE" != no ] && log_begin_msg "Starting cvlc readin' $STREAM" su bib -c "nohup cvlc -R $STREAM"& >&2 } case "$1" in start) do_start ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) echo "Don't yah dare stahp dah muzik" ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac