summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2020-07-13 09:10:05 +0000
committerDaniel Golle2020-07-13 11:14:49 +0000
commitdacab12b301085eac00e84a94e42096de70886e8 (patch)
tree85de0aa980c17509289b8249e2686ff84ed27c7e
parentb586e7d693d39247d854b03c15610173b7a42f61 (diff)
downloadprocd-dacab12b301085eac00e84a94e42096de70886e8.tar.gz
uxc: fix 'stop' command
The 'stop' command was requesting an invalid ubus method. Fix method name to make 'stop' operation work. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--uxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uxc.c b/uxc.c
index 6013637..a0a6706 100644
--- a/uxc.c
+++ b/uxc.c
@@ -360,7 +360,7 @@ static int uxc_stop(char *name)
ret = 0;
if (ubus_lookup_id(ctx, "container", &id) ||
- ubus_invoke(ctx, id, "del", req.head, NULL, NULL, 3000)) {
+ ubus_invoke(ctx, id, "delete", req.head, NULL, NULL, 3000)) {
ret = EIO;
}