mirror of
https://gitee.com/openharmony/distributeddatamgr_datamgr_service
synced 2024-11-23 14:59:46 +00:00
L2添加config文件
Signed-off-by: zuojiangjiang <zuojiangjiang@huawei.com>
This commit is contained in:
parent
d0dcc4b537
commit
2531f17e32
@ -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"
|
||||
|
22
services/distributeddataservice/app/distributed_data.cfg
Normal file
22
services/distributeddataservice/app/distributed_data.cfg
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user