diff --git a/multimedia/icecast/files/icecast.init b/multimedia/icecast/files/icecast.init index 11f9f5299..355e4b716 100755 --- a/multimedia/icecast/files/icecast.init +++ b/multimedia/icecast/files/icecast.init @@ -2,13 +2,13 @@ # Example script # Copyright (C) 2014 OpenWrt.org +USE_PROCD=1 START=99 STOP=15 -start() { - service_start /usr/bin/icecast -c /etc/icecast.xml -b -} - -stop() { - service_stop /usr/bin/icecast +start_service() { + procd_open_instance + procd_set_param command /usr/bin/icecast -c /etc/icecast.xml + procd_set_param respawn + procd_close_instance }