diff --git a/luci-mod-istorenext/root-demo/etc/init.d/istorenext-demo b/luci-mod-istorenext/root-demo/etc/init.d/istorenext-demo new file mode 100755 index 000000000..d7d2f5d28 --- /dev/null +++ b/luci-mod-istorenext/root-demo/etc/init.d/istorenext-demo @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common + +START=79 +USE_PROCD=1 + +start_service() { + procd_open_instance + procd_set_param command /usr/sbin/uhttpd -f -h /demo -r Test -x /cgi-bin/luci/istorenext/cgi-bin -u /ubus -t 360 -T 30 -k 20 -A 1 -n 50 -N 100 -R -p 0.0.0.0:8080 + procd_set_param stderr 1 + procd_set_param respawn + procd_close_instance +} diff --git a/luci-mod-istorenext/root-demo/istorenext-demo.sh b/luci-mod-istorenext/root-demo/istorenext-demo.sh deleted file mode 100755 index d702b17e2..000000000 --- a/luci-mod-istorenext/root-demo/istorenext-demo.sh +++ /dev/null @@ -1 +0,0 @@ -uhttpd -f -h /demo -r Test -x /cgi-bin/luci/istorenext/cgi-bin -u /ubus -t 360 -T 30 -k 20 -A 1 -n 50 -N 100 -R -p 0.0.0.0:8080