procd: the delete ubus call was passed the wrong field name for services
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 11 Jul 2013 17:00:49 +0000 (17:00 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 11 Jul 2013 17:00:49 +0000 (17:00 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37247 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/system/procd/files/procd.sh

index 3f1311c..b706b1e 100644 (file)
@@ -184,7 +184,7 @@ _procd_kill() {
        local instance="$2"
 
        json_init
-       [ -n "$service" ] && json_add_string service "$service"
+       [ -n "$service" ] && json_add_string name "$service"
        [ -n "$instance" ] && json_add_string instance "$instance"
        _procd_ubus_call delete
 }