[icecast] use procd for init script 130/head
authorAndré Gaul <gaul@web-yard.de>
Mon, 28 Jul 2014 07:47:29 +0000 (09:47 +0200)
committerAndré Gaul <gaul@web-yard.de>
Mon, 28 Jul 2014 07:47:29 +0000 (09:47 +0200)
Signed-off-by: André Gaul <gaul@web-yard.de>
multimedia/icecast/files/icecast.init

index 11f9f52992367c8f99fe215fbc4d4a3e8126e2df..355e4b7169c35764534ad09ac9ebbed9c67e2778 100755 (executable)
@@ -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
 }