procd: service gets deleted when its last instance is freed
[project/procd.git] / state.c
diff --git a/state.c b/state.c
index d51970e952d5a3326020aaf5745463d1e5f3cf5b..3b56bd0b75f81851b12b2fb5cb32d52ef16fb2d7 100644 (file)
--- a/state.c
+++ b/state.c
@@ -111,7 +111,6 @@ static void state_enter(void)
                set_stdio("console");
                LOG("- ubus -\n");
                procd_connect_ubus();
-               service_init();
                service_start_early("ubus", ubus_cmd);
                break;
 
@@ -129,6 +128,8 @@ static void state_enter(void)
 
        case STATE_RUNNING:
                LOG("- init complete -\n");
+               procd_inittab_run("respawnlate");
+               procd_inittab_run("askconsolelate");
                break;
 
        case STATE_SHUTDOWN: