procd: Allow initscripts to start one daemon instance at a time

Signed-off-by: Pierre Lebleu <pierre.lebleu@technicolor.com>
master
Pierre Lebleu 8 years ago committed by John Crispin
parent 5c96200dab
commit 6bb11d52f3
  1. 4
      package/base-files/files/etc/rc.common
  2. 2
      package/system/procd/files/procd.sh

@ -102,9 +102,11 @@ ${INIT_TRACE:+set -x}
. $IPKG_INSTROOT/lib/functions/procd.sh
basescript=$(readlink "$initscript")
rc_procd() {
local method="set"
[ -n "$2" ] && method="add"
procd_open_service "$(basename ${basescript:-$initscript})" "$initscript"
"$@"
procd_close_service
procd_close_service "$method"
}
start() {

@ -76,7 +76,7 @@ _procd_close_service() {
_procd_open_trigger
service_triggers
_procd_close_trigger
_procd_ubus_call set
_procd_ubus_call ${1:-set}
}
_procd_add_array_data() {

Loading…
Cancel
Save