summaryrefslogtreecommitdiffstats
path: root/ubus.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index 7b96fd6..e6f9922 100644
--- a/ubus.c
+++ b/ubus.c
@@ -61,7 +61,11 @@ static void procd_ubus_try_connect(void)
ctx->connection_lost = procd_ubus_connection_lost;
ubus_connected = true;
- procd_init_service(ctx);
+ ubus_init_service(ctx);
+ if (getpid() == 1) {
+ ubus_init_log(ctx);
+ ubus_init_system(ctx);
+ }
}
static void procd_ubus_connection_lost(struct ubus_context *old_ctx)