mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
[icecast] use procd for init script
Signed-off-by: André Gaul <gaul@web-yard.de>
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
# Example script
|
# Example script
|
||||||
# Copyright (C) 2014 OpenWrt.org
|
# Copyright (C) 2014 OpenWrt.org
|
||||||
|
|
||||||
|
USE_PROCD=1
|
||||||
START=99
|
START=99
|
||||||
STOP=15
|
STOP=15
|
||||||
|
|
||||||
start() {
|
start_service() {
|
||||||
service_start /usr/bin/icecast -c /etc/icecast.xml -b
|
procd_open_instance
|
||||||
}
|
procd_set_param command /usr/bin/icecast -c /etc/icecast.xml
|
||||||
|
procd_set_param respawn
|
||||||
stop() {
|
procd_close_instance
|
||||||
service_stop /usr/bin/icecast
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user