procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts...
[openwrt.git] / package / system / procd / files / procd.sh
index 73beaaf6b240ffa111378fe3cd543a9bc161aa4b..c5dc3c65cb00ec8592fed7f59a15769b189e1490 100644 (file)
@@ -50,6 +50,7 @@ _procd_wrapper() {
 _procd_ubus_call() {
        local cmd="$1"
 
+       [ -n "$PROCD_DEBUG" ] && json_dump >&2
        ubus call service "$cmd" "$(json_dump)"
        json_cleanup
 }
@@ -240,6 +241,8 @@ _procd_wrapper \
        procd_close_trigger \
        procd_open_instance \
        procd_close_instance \
+       procd_open_validate \
+       procd_close_validate \
        procd_set_param \
        procd_append_param \
        procd_add_validation \