From 66b13d6ca7b01feac076a0371b4a680cd5cf50ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gaul?= Date: Mon, 28 Jul 2014 09:47:29 +0200 Subject: [PATCH] [icecast] use procd for init script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Gaul --- multimedia/icecast/files/icecast.init | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 }