提交 5c901eeb 编写于 作者: X xionglei6

modify: cfg adapt parallel start

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 93bec381
...@@ -417,8 +417,7 @@ ...@@ -417,8 +417,7 @@
"name" : "boot && param:const.debuggable=1", "name" : "boot && param:const.debuggable=1",
"condition" : "boot && const.debuggable=1", "condition" : "boot && const.debuggable=1",
"cmds" : [ "cmds" : [
"start console", "start console"
"start misc"
] ]
}, { }, {
"name" : "services:console", "name" : "services:console",
...@@ -478,7 +477,6 @@ ...@@ -478,7 +477,6 @@
"gid" : ["shell", "log", "readproc"] "gid" : ["shell", "log", "readproc"]
}, { }, {
"name" : "misc", "name" : "misc",
"start-mode" : "normal",
"path" : ["/system/bin/misc_daemon", "--write_logo", "/vendor/logo.rgb"], "path" : ["/system/bin/misc_daemon", "--write_logo", "/vendor/logo.rgb"],
"once" : 1 "once" : 1
} }
......
...@@ -184,7 +184,6 @@ ...@@ -184,7 +184,6 @@
}, { }, {
"name" : "post-fs-data", "name" : "post-fs-data",
"cmds" : [ "cmds" : [
"start misc",
"chown system system /data", "chown system system /data",
"chmod 0771 /data", "chmod 0771 /data",
"mkdir /data/app 0711 root root", "mkdir /data/app 0711 root root",
...@@ -453,8 +452,7 @@ ...@@ -453,8 +452,7 @@
}, { }, {
"name" : "misc", "name" : "misc",
"path" : ["/system/bin/misc_daemon", "--write_logo", "/vendor/logo.rgb"], "path" : ["/system/bin/misc_daemon", "--write_logo", "/vendor/logo.rgb"],
"once" : 1, "once" : 1
"start-mode" : "normal"
} }
] ]
} }
...@@ -242,12 +242,7 @@ static void BootStateChange(const char *content) ...@@ -242,12 +242,7 @@ static void BootStateChange(const char *content)
{ {
INIT_LOGI("boot start %s finish.", content); INIT_LOGI("boot start %s finish.", content);
if (strcmp("init", content) == 0) { if (strcmp("init", content) == 0) {
static const char *bootServiceNames[] = { StartAllServices(START_MODE_BOOT);
"hdf_devmgr", "samgr", "appspawn", "faultloggerd"
};
for (int i = 0; i < ARRAY_LENGTH(bootServiceNames); i++) {
StartServiceByName(bootServiceNames[i], 0);
}
return; return;
} }
if (strcmp("post-init", content) == 0) { if (strcmp("post-init", content) == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册