L2添加config文件

Signed-off-by: zuojiangjiang <zuojiangjiang@huawei.com>
This commit is contained in:
zuojiangjiang 2021-07-31 15:11:57 +08:00
parent d0dcc4b537
commit 2531f17e32
2 changed files with 37 additions and 1 deletions

View File

@ -17,12 +17,26 @@ group("build_module") {
deps = [ ":distributeddataservice" ]
if (build_public_version) {
deps += [
":distributed_data.rc",
":distributeddata_profile",
]
if (use_musl) {
deps += [
":distributed_data.cfg",
]
} else {
deps += [
":distributed_data.rc",
]
}
}
}
ohos_prebuilt_etc("distributed_data.cfg") {
source = "distributed_data.cfg"
relative_install_dir = "init"
subsystem_name = "distributeddatamgr"
}
ohos_prebuilt_etc("distributed_data.rc") {
source = "distributed_data.rc"
relative_install_dir = "init"

View File

@ -0,0 +1,22 @@
{
"jobs":[{
"name" : "boot",
"cmds" : [
"start distributeddata"
]
}
],
"services":[{
"name" : "distributeddata",
"path" : ["/system/bin/sa_main","/system/profile/distributeddata.xml"],
"caps" : ["DAC_READ_SEARCH"],
"uid" : "system",
"gid" : ["system","shell","readproc"],
"writepid":[
"/dev/cpuset/foreground/tasks",
"/dev/stune/foreground/tasks",
"/dev/blkio/foreground/tasks"
]
}
]
}