提交 3b79b1c7 编写于 作者: S shawn_he

update doc

Signed-off-by: Nshawn_he <shawn.he@huawei.com>
上级 7fca1ed7
...@@ -126,7 +126,7 @@ A job is a command set, where you can manage the commands to be executed. A maxi ...@@ -126,7 +126,7 @@ A job is a command set, where you can manage the commands to be executed. A maxi
export <i>key value</i><br>Example:<br>export TEST /data/test export <i>key value</i><br>Example:<br>export TEST /data/test
</td> </td>
<td class="xl6621952" width="225" style="border-top:none;border-left:none; width:169pt"> <td class="xl6621952" width="225" style="border-top:none;border-left:none; width:169pt">
Sets environment variables. <strong>key</strong> and <strong>value</strong> respectively indicate the environment variable and its value. Sets environment variables. <i>key</i> and <i>value</i> respectively indicate the environment variable and its value.
</td> </td>
<td class="xl6621952" width="190" style="border-top:none;border-left:none; width:143pt"> <td class="xl6621952" width="190" style="border-top:none;border-left:none; width:143pt">
Small and standard systems Small and standard systems
...@@ -210,7 +210,7 @@ A job is a command set, where you can manage the commands to be executed. A maxi ...@@ -210,7 +210,7 @@ A job is a command set, where you can manage the commands to be executed. A maxi
reboot <i>subsystem</i><br>Example:<br>reboot updater reboot <i>subsystem</i><br>Example:<br>reboot updater
</td> </td>
<td class="xl6621952" width="225" style="border-top:none;border-left:none; width:169pt"> <td class="xl6621952" width="225" style="border-top:none;border-left:none; width:169pt">
Restarts the system. <strong>subsystem</strong> is optional. If it is not specified, the device enters the current system upon restarting. If it is specified, the device enters the corresponding subsystem upon restarting. For example, if you run <strong>reboot updater</strong>, the device enters the updater subsystem upon restarting. Restarts the system. <i>subsystem</i> is optional. If it is not specified, the device enters the current system upon restarting. If it is specified, the device enters the corresponding subsystem upon restarting. For example, if you run <strong>reboot updater</strong>, the device enters the updater subsystem upon restarting.
</td> </td>
<td class="xl6621952" width="190" style="border-top:none;border-left:none; width:143pt"> <td class="xl6621952" width="190" style="border-top:none;border-left:none; width:143pt">
Small and standard systems Small and standard systems
...@@ -224,7 +224,7 @@ A job is a command set, where you can manage the commands to be executed. A maxi ...@@ -224,7 +224,7 @@ A job is a command set, where you can manage the commands to be executed. A maxi
sleep <i>time</i><br>Example:<br>sleep 5 sleep <i>time</i><br>Example:<br>sleep 5
</td> </td>
<td class="xl6621952" width="225" style="border-top:none;border-left:none; width:169pt"> <td class="xl6621952" width="225" style="border-top:none;border-left:none; width:169pt">
Enters the sleep mode. <strong>time</strong> indicates the sleep time. <br>To avoid impact on services, exercise caution when running this command. Enters the sleep mode. <i>time</i> indicates the sleep time. <br>To avoid impact on services, exercise caution when running this command.
</td> </td>
<td class="xl6621952" width="190" style="border-top:none;border-left:none; width:143pt"> <td class="xl6621952" width="190" style="border-top:none;border-left:none; width:143pt">
Small and standard systems Small and standard systems
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
### Function ### Function
OpenHarmony supports two types of sandbox, namely, system sandbox and chipset sandbox. OpenHarmony supports two types of sandbox, namely, system sandbox and chipset sandbox.
### Basic Concepts The system sandbox and chipset sandbox are created in the init module. Native services choose to enter the system sandbox or chipset sandbox based on their functions.
The system sandbox and chipset sandbox are created in the init module. Native services choose to enter the system sandbox or chipset sandbox based on their functions. Sandbox components can be isolated through the **mount** attribute if **mount-bind-paths** or **mount-bind-files** is set for them in configuration files such as **system-sandbox.json** and **chipset-sandbox.json**. In addition, a sandbox debugging tool is provided to facilitate sandbox debugging, verification, and optimization. For details about commands, see [Description of begetctl Commands](subsys-boot-init-plugin.md#parameters).
Sandbox components can be isolated through the **mount** attribute if **mount-bind-paths** or **mount-bind-files** is set for them in configuration files such as **system-sandbox.json** and **chipset-sandbox.json**. In addition, a sandbox debugging tool is provided to facilitate sandbox debugging, verification, and optimization. For details about commands, see [Description of begetctl Commands](subsys-boot-init-plugin.md#parameters).
### Constraints ### Constraints
......
...@@ -196,8 +196,8 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a ...@@ -196,8 +196,8 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a
Whether the current service process is a one-off process. Whether the current service process is a one-off process.
</td> </td>
<td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt"> <td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt">
**1**: The current service process is a one-off process. If the process exits, the init process does not restart it.<br> <strong>1</strong>: The current service process is a one-off process. If the process exits, the init process does not restart it.<br>
**0**: The current service process is not a one-off process. If the process exits, the init process restarts it upon receiving the SIGCHLD signal. <strong>0</strong>: The current service process is not a one-off process. If the process exits, the init process restarts it upon receiving the SIGCHLD signal.
</td> </td>
<td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt"> <td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt">
Small and standard systems Small and standard systems
...@@ -212,7 +212,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a ...@@ -212,7 +212,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a
</td> </td>
<td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt"> <td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt">
Standard system: The service priority ranges from -20 to 19. A value beyond the range is invalid.<br> Standard system: The service priority ranges from -20 to 19. A value beyond the range is invalid.<br>
Small system: The value **0** indicates an unimportant process and a value greater than **0** indicates an important process. Small system: The value <strong>0</strong> indicates an unimportant process and a value greater than <strong>0</strong> indicates an important process.
</td> </td>
<td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt"> <td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt">
Small and standard systems Small and standard systems
...@@ -240,8 +240,8 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a ...@@ -240,8 +240,8 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a
Suppression mechanism for services. If the number of times a service is restarted exceeds the value N within the specified period T, the system will be restarted. Suppression mechanism for services. If the number of times a service is restarted exceeds the value N within the specified period T, the system will be restarted.
</td> </td>
<td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt"> <td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt">
Standard system:<br>Type: int array, for example, <strong>"critical": [M, N, T]</strong>.<br>- **M**: enable flag (**0**: disable; **1**: enable).<br>- **N**: number of times the service is started.<br>- **T**: period of time, in seconds.<br> Both **M** and **N** are greater than **0**.<br> Standard system:<br>Type: int array, for example, <strong>"critical": [M, N, T]</strong>.<br>- <strong>M</strong>: enable flag (<strong>0</strong>: disable; <strong>1</strong>: enable).<br>- <strong>N</strong>: number of times the service is started.<br>- <strong>T</strong>: period of time, in seconds.<br> Both <strong>M</strong> and <strong>N</strong> are greater than <strong>0</strong>.<br>
Small and standard systems:<br>Type: int, for example, <strong>"critical": M</strong>.<br>**M**: enable flag (**0**: disable; **1**: enable).<br> By default, **N** is **4** and **T** is **20**. Small and standard systems:<br>Type: int, for example, <strong>"critical": M</strong>.<br><strong>M</strong>: enable flag (<strong>0</strong>: disable; <strong>1</strong>: enable).<br> By default, <strong>N</strong> is <strong>4</strong> and <strong>T</strong> is <strong>20</strong>.
</td> </td>
<td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt"> <td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt">
Standard system Standard system
...@@ -255,7 +255,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a ...@@ -255,7 +255,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a
Number of CPU cores bound to the service. Number of CPU cores bound to the service.
</td> </td>
<td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt"> <td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt">
Type: int array, for example, <strong>"cpucore": [N1, N2, ...]</strong>. **N1** and **N2** indicate the indices of the CPU cores to be bound. For a single-core device, **cpucore** is **0**. Type: int array, for example, <strong>"cpucore": [N1, N2, ...]</strong>. <strong>N1</strong> and <strong>N2</strong> indicate the indices of the CPU cores to be bound. For a single-core device, <strong>cpucore</strong> is <strong>0</strong>.
</td> </td>
<td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt"> <td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt">
Standard system Standard system
...@@ -283,7 +283,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a ...@@ -283,7 +283,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a
Ability privilege level (for standard system or higher). Ability privilege level (for standard system or higher).
</td> </td>
<td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt"> <td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt">
Type: string, for example, <strong>"apl": "system_core"</strong>. The value can be **system_core** (default), **normal**, or **system_basic**. Type: string, for example, <strong>"apl": "system_core"</strong>. The value can be <strong>system_core</strong> (default), <strong>normal</strong>, or <strong>system_basic</strong>.
</td> </td>
<td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt"> <td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt">
Standard system Standard system
...@@ -297,7 +297,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a ...@@ -297,7 +297,7 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a
Service startup mode (for standard system or higher). Service startup mode (for standard system or higher).
</td> </td>
<td class="xl6721805" width="242" style="border-top:none;border-left:none; width:182pt"> <td class="xl6721805" width="242" style="border-top:none;border-left:none; width:182pt">
Type: string, for example, <strong>"start-mode": "condition"</strong>. The value can be **boot**, **normal**, or **condition**. For details, see init Service Startup Control.</a> Type: string, for example, <strong>"start-mode": "condition"</strong>. The value can be <strong>boot</strong>, <strong>normal</strong>, or <strong>condition</strong>. For details, see init Service Startup Control.</a>
</td> </td>
<td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt"> <td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt">
Standard system Standard system
...@@ -339,8 +339,8 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a ...@@ -339,8 +339,8 @@ By parsing the <strong>*.cfg</strong> file, you can obtain **service** fields, a
Whether the sandbox function is enabled. Whether the sandbox function is enabled.
</td> </td>
<td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt"> <td class="xl6621805" width="242" style="border-top:none;border-left:none; width:182pt">
**1** (default): Enable the sandbox function. <strong>1</strong> (default): Enable the sandbox function.<br>
**0**: Disable the sandbox function. <strong>0</strong>: Disable the sandbox function.
</td> </td>
<td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt"> <td class="xl6621805" width="173" style="border-top:none;border-left:none; width:130pt">
Standard system Standard system
......
...@@ -26,10 +26,10 @@ Figure 1 System parameter operation primitives ...@@ -26,10 +26,10 @@ Figure 1 System parameter operation primitives
**Table 2** System parameter names **Table 2** System parameter names
| Type| Name| Example| Description| | Type | Example | Description |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- |
| Name| Parameter Name | const.product.**name** | Complete system parameter name. It does not end with a period (.). | | Parameter name | const.product.**name** | Complete system parameter name. It does not end with a period (.). |
| Directory| Parameter Directory | const.product **.** | Name of the directory storing system parameters with the same prefix. It ends with a period (.).| | Parameter directory | const.product **.** | Name of the directory storing system parameters with the same prefix. It ends with a period (.).|
- Type - Type
...@@ -132,7 +132,7 @@ You can set specific system parameters as needed to meet your service demand. ...@@ -132,7 +132,7 @@ You can set specific system parameters as needed to meet your service demand.
| -------- | -------- | | -------- | -------- |
| param get [**key**] | Obtains the system parameter value of the specified key. If no key name is specified, all system parameter values will be returned.| | param get [**key**] | Obtains the system parameter value of the specified key. If no key name is specified, all system parameter values will be returned.|
| param set **key value** | Sets the specified value for the specified key.| | param set **key value** | Sets the specified value for the specified key.|
| param wait **key** **value** | Waits for the system parameter value of the specified key to match the specified value. Fuzzy match is supported. For example, <strong>*</strong> indicates any value, and <strong>val*</strong> indicates matching of only the first three val characters.| | param wait **key** **value** | Waits for the system parameter value of the specified key to match the specified value. Fuzzy match is supported. For example, * indicates any value, and <strong>val</strong>* indicates matching of only the first three val characters.|
| param watch | Observes value change of a system parameter asynchronously.| | param watch | Observes value change of a system parameter asynchronously.|
- syspara APIs - syspara APIs
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册