提交 1757ad78 编写于 作者: S shawn_he

update doc

Signed-off-by: Nshawn_he <shawn.he@huawei.com>
上级 840191f6
......@@ -4,13 +4,13 @@
The init configuration file is in JSON format and is used to configure commands and services required for system startup. Upon system startup, the Init process parses the init configuration file and runs the commands in it to start the corresponding services.
### Basic Concepts
1. Group configuration file: A group configuration file is named in the format of **device.xxxx.group.cfg**. It consists of three parts, **jobs**, **services**, and **groups**. It is available only for the standard system. Such a file is used to configure the jobs and services that can be executed. The partition that holds the file is determined based on the **bootgroup** attribute in cmdline. Currently, the following groups are supported:
-device.boot.group: default configuration, which is used to trigger all jobs and services in the configuration file.
- device.charge.group: charge mode, which is used to trigger only the allowed jobs and services in the configuration file.
-**device.boot.group**: default configuration, which is used to trigger all jobs and services in the configuration file.
- **device.charge.group**: charge mode, which is used to trigger only the allowed jobs and services in the configuration file.
2. Startup configuration file: **init.cfg** file, which consists of three parts, **jobs**, **services**, and **import**.
- services (for the Linux kernel only): native services supported by the system. For details about the service configuration, see [Service Management](subsys-boot-init-service.md).
- jobs: collection of commands to be executed. For details about jobs, see [Job Management](subsys-boot-init-jobs.md).
- import (for the Linux kernel only). command used to import **.cfg** files. It helps reduce the size of **.cfg** files for implementing different functions.
- **services** (for the Linux kernel only): native services supported by the system. For details about the service configuration, see [Service Management](subsys-boot-init-service.md).
- **jobs**: collection of commands to be executed. For details about jobs, see [Job Management](subsys-boot-init-jobs.md).
- **import** (for the Linux kernel only): command used to import **.cfg** files. It helps reduce the size of **.cfg** files for implementing different functions.
### Constraints
Only the small system and standard system are supported.
......
......@@ -67,10 +67,10 @@ A job is a command set, where you can manage the commands to be executed. A maxi
chmod
</td>
<td class="xl6621952" width="215" style="border-top:none;border-left:none; width:161pt">
chmod *permission* *target*<br>Example:<br>chmod 0600 /storage/myFile.txt<br>chmod 0750 /storage/myDir
chmod <i>permission</i> <i>target</i><br>Example:<br>chmod 0600 /storage/myFile.txt<br>chmod 0750 /storage/myDir
</td>
<td class="xl6621952" width="225" style="border-top:none;border-left:none; width:169pt">
Modifies the permission, which must be in the **0*****xxx*** format. **chmod**, *permission*, and *target* must be separated by only one space.
Modifies the permission, which must be in the **0****<i>xxx</i>** format. **chmod**, <i>permission</i>, and <i>target</i> must be separated by only one space.
</td>
<td class="xl6621952" width="190" style="border-top:none;border-left:none; width:143pt">
Small and standard systems
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册