mirror of
https://github.com/openharmony/miscservices_time.git
synced 2026-07-19 12:02:04 -04:00
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:
+5
-1
@@ -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"
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user