!10 自研init适配

Merge pull request !10 from verystone/master
This commit is contained in:
openharmony_ci 2021-07-30 01:47:55 +00:00 committed by Gitee
commit e3beeaeafb
2 changed files with 28 additions and 3 deletions

View File

@ -14,8 +14,12 @@
import("//base/account/os_account/os_account.gni")
import("//build/ohos.gni")
ohos_prebuilt_etc("accountmgr.rc") {
source = "accountmgr.rc"
ohos_prebuilt_etc("accountmgr.init") {
if (use_musl) {
source = "accountmgr.cfg"
} else {
source = "accountmgr.rc"
}
relative_install_dir = "init"
part_name = "os_account_standard"
}
@ -36,7 +40,7 @@ config("accountmgr_config") {
group("accountmgr_target") {
deps = [
":accountmgr",
":accountmgr.rc",
":accountmgr.init",
]
}

View File

@ -0,0 +1,21 @@
{
"jobs" : [{
"name" : "post-fs-data",
"cmds" : [
"start accountmgr"
]
}
],
"services" : [{
"name" : "accountmgr",
"path" : ["/system/bin/sa_main", "/system/profile/accountmgr.xml"],
"uid" : "system",
"gid" : ["system", "shell"],
"writepid" : [
"/dev/cpuset/foreground/tasks",
"/dev/stune/foreground/tasks",
"/dev/blkio/foreground/tasks"
]
}
]
}