From 48dec49035ca4685e7ee80da63edb5bc5ce8e36f Mon Sep 17 00:00:00 2001 From: edwardcaoyue Date: Tue, 13 Jun 2023 19:58:43 +0800 Subject: [PATCH] service config file Signed-off-by: edwardcaoyue --- bundle.json | 44 ++++++++++++++++++++++++++++ etc/init/BUILD.gn | 27 +++++++++++++++++ etc/init/concurrent_task_service.cfg | 18 ++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 bundle.json create mode 100644 etc/init/BUILD.gn create mode 100644 etc/init/concurrent_task_service.cfg diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..7a48fec --- /dev/null +++ b/bundle.json @@ -0,0 +1,44 @@ +{ + "name": "@ohos/qos_manager", + "description": "qos_manager", + "version": "3.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "foundation/resourceschedule/qos_manager" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "qos_manager", + "subsystem": "resourceschedule", + "syscap": [], + "features": [], + "adapted_system_type": [ + "mini", + "small", + "standard" + ], + "rom": "2048KB", + "ram": "10240KB", + "deps": { + "components": [ + "ability_base", + "ability_runtime", + "libeventhandler", + "ipc_single", + "samgr", + "system_ability_fwk" + ], + "third_party": [ + "xml2", + "json" + ] + }, + "build": { + "sub_component": [ + "//foundation/resourceschedule/qos_manager/etc/init:concurrent_task_service.cfg" + ] + } + } +} diff --git a/etc/init/BUILD.gn b/etc/init/BUILD.gn new file mode 100644 index 0000000..88f8dd1 --- /dev/null +++ b/etc/init/BUILD.gn @@ -0,0 +1,27 @@ +# Copyright (c) 2022 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. + +import("//build/ohos.gni") + +################################################################################# + +group("etc") { + deps = [ ":concurrent_task_service.cfg" ] +} + +ohos_prebuilt_etc("concurrent_task_service.cfg") { + source = "concurrent_task_service.cfg" + relative_install_dir = "init" + subsystem_name = "resourceschedule" + part_name = "qos_manager" +} diff --git a/etc/init/concurrent_task_service.cfg b/etc/init/concurrent_task_service.cfg new file mode 100644 index 0000000..c9a2484 --- /dev/null +++ b/etc/init/concurrent_task_service.cfg @@ -0,0 +1,18 @@ +{ + "jobs" : [{ + "name" : "post-fs-data", + "cmds" : [ + "start concurrent_task_service" + ] + } + ], + "services" : [{ + "name" : "concurrent_task_service", + "path" : ["/system/bin/sa_main", "/system/profile/concurrent_task_service.json"], + "importance" : -20, + "uid" : "system", + "gid" : ["system", "shell"], + "secon" : "u:r:concurrent_task_service:s0" + } + ] +} -- Gitee