IssueNo:#I41SMV

Description:time_service.rc文件整改
Feature or Bugfix: Bugfix
Binary Source: No

Signed-off-by: autumn330 <hw.liuwei@huawei.com>
This commit is contained in:
autumn330
2021-07-21 16:52:02 +08:00
parent b06641b9b2
commit 44de85dc40
2 changed files with 35 additions and 1 deletions
+5 -1
View File
@@ -16,7 +16,11 @@ import("//build/ohos.gni")
################################################################################
ohos_prebuilt_etc("timeservice.rc") {
source = "timeservice.rc"
if (use_musl) {
source = "timeservice.cfg"
} else {
source = "timeservice.rc"
}
relative_install_dir = "init"
part_name = "time_native"
subsystem_name = "miscservices"
+30
View File
@@ -0,0 +1,30 @@
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
"jobs" : [{
"name" : "boot",
"cmds" : [
"start time_service"
]
}
],
"services" : [{
"name" : "time_service",
"path" : ["/system/bin/sa_main", "/system/profile/time_service.xml"],
"uid" : "system",
"gid" : ["system", "shell"],
"caps" : ["SYS_TIME"]
}
]
}