X-Git-Url: https://git.rvb.name/oss-streamer.git/blobdiff_plain/2356acfbb312273cd26750508c22058cdbc4f3e0..46061842ccbe8b1c195932288a36375654c861c1:/etc/init.d/oss-streamer?ds=sidebyside 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' }