From: Roman Bazalevsky Date: Fri, 11 Jul 2014 15:55:13 +0000 (+0400) Subject: Starup script to use with alsa source X-Git-Url: https://git.rvb.name/oss-streamer.git/commitdiff_plain/46061842ccbe8b1c195932288a36375654c861c1?ds=sidebyside;hp=9567fc9b2dab3b8fb0f9c2115cd5ef9d2ea304cd Starup script to use with alsa source --- diff --git a/etc/init.d/oss-streamer b/etc/init.d/oss-streamer index 9f0baf3..77e58f5 100644 --- a/etc/init.d/oss-streamer +++ b/etc/init.d/oss-streamer @@ -5,7 +5,7 @@ START=90 STOP=10 USE_PROCD=1 -PROG=/usr/bin/oss-streamer +PROG=/usr/bin/soundstream error() { echo "${initscript}:" "$@" 1>&2 @@ -13,7 +13,7 @@ error() { start_instance() { procd_open_instance - procd_set_param command "$PROG" -p 8081 -d /dev/dsp + procd_set_param command "$PROG" procd_close_instance } @@ -21,6 +21,11 @@ start_service() { start_instance 'oss-streamer' } +stop_service() { + killall arecord + killall oss-streamer +} + service_triggers() { procd_add_reload_trigger 'oss-streamer' }