Kaynağa Gözat

[icecast] use procd for init script

Signed-off-by: André Gaul <gaul@web-yard.de>
André Gaul 10 yıl önce
ebeveyn
işleme
66b13d6ca7
1 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 6
    6
      multimedia/icecast/files/icecast.init

+ 6
- 6
multimedia/icecast/files/icecast.init Dosyayı Görüntüle

@@ -2,13 +2,13 @@
2 2
 # Example script
3 3
 # Copyright (C) 2014 OpenWrt.org
4 4
  
5
+USE_PROCD=1
5 6
 START=99
6 7
 STOP=15
7 8
 
8
-start() {        
9
-        service_start /usr/bin/icecast -c /etc/icecast.xml -b
10
-}                 
11
- 
12
-stop() {          
13
-	service_stop /usr/bin/icecast
9
+start_service() {
10
+	procd_open_instance
11
+	procd_set_param command /usr/bin/icecast -c /etc/icecast.xml
12
+	procd_set_param respawn
13
+	procd_close_instance
14 14
 }