mirror of
https://gitee.com/openharmony/account_os_account
synced 2024-11-23 10:10:11 +00:00
commit
e3beeaeafb
@ -14,8 +14,12 @@
|
||||
import("//base/account/os_account/os_account.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
ohos_prebuilt_etc("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",
|
||||
]
|
||||
}
|
||||
|
||||
|
21
services/accountmgr/accountmgr.cfg
Normal file
21
services/accountmgr/accountmgr.cfg
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user