extra_command "running" "Check if service is running"
extra_command "status" "Service status"
extra_command "trace" "Start with syscall trace"
+ extra_command "info" "Dump procd service info"
. $IPKG_INSTROOT/lib/functions/procd.sh
basescript=$(readlink "$initscript")
start "$@"
}
+ info() {
+ json_init
+ json_add_string name "$(basename ${basescript:-$initscript})"
+ json_add_boolean verbose "1"
+ _procd_ubus_call list
+ }
+
stop() {
procd_lock
stop_service "$@"