Note
This API has been available since API level 11.
This API has been available since API level 11.
Monitors and controls the boot status/mode.
It manages the boot sequence for:
NA
API level 11
Generates boot step signals. Caller and argument are decided statically.
Name | Required | Type | Description |
---|---|---|---|
name | Required | String | Indicates the logical event name to notify bootd. Normally, this is used to generate upstart signal like 'core-boot-done', 'init-boot-done' and 'minimal-boot-done'. Note: If bootd internal components await the logical event, bootd unblocks internal components. |
Name | Required | Type | Description |
---|---|---|---|
errorText | Optional | String | Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details. |
returnValue | Required | Boolean | Indicates the status of the operation. Possible values are:
|
Error Code | Error Text | Error Description |
---|---|---|
None | Error getting parameter name | Indicates that there is no name (key or value) in the request payload. |
None | Invalid JSON argument | Indicates that the parameter provided does not have a valid json format. |
Example code
# luna-send -n 1 -f luna://com.webos.bootManager/generateSignal '{
"name":"minimal-boot-done"
}'
API level 11
Gets the boot status or subscribe to updates on the boot status.
Name | Required | Type | Description |
---|---|---|---|
subscribe | Optional | Boolean | Indicates if subscribed to get future updates. Possible values are:
|
Name | Required | Type | Description |
---|---|---|---|
bootStatus | Required | String | Returns the current status of the booting process. Possible values are:
|
powerStatus | Required | String | Returns current power status. Possible values are:
|
bootTarget | Required | String | Returns the current target system. Possible values are:
|
signals | Required | Object: signals | Returns signal information. |
subscribed | Required | Boolean | Returns true to indicate subscribed. |
returnValue | Required | Boolean | Indicates the status of the operation. Note: returnValue is always set to true. |
Name | Required | Type | Description |
---|---|---|---|
bootStatus | Required | String | Returns the current status of the booting process. Possible values are:
|
powerStatus | Required | String | Returns current power status. Possible values are:
|
bootTarget | Required | String | Returns the current target system. Possible values are:
|
signals | Required | Object: signals | Indicates signal information. |
returnValue | Required | Boolean | Indicates the status of the operation. Note: returnValue is always set to true. |
Example code
# luna-send -n 1 -f luna://com.webos.bootManager/getBootStatus '{
"subscribe":true
}'
Response:
{
"bootTarget":"hardware",
"bootStatus":"normal",
"powerStatus":"active",
"signals":{
"boot-done":true,
"core-boot-done":true,
"datastore-init-start":true,
"minimal-boot-done":true,
"init-boot-done":true,
"rest-boot-done":true
},
"subscribed":true,
"returnValue":true
}
Contains an array of upstart signals. The value of an upstart signal is set to true after bootd generates the signal.
Note:
Name | Required | Type | Description |
---|---|---|---|
snapshot-resume-done | Required | Boolean | Indicates snapshot-resume-done upstart signal. |
core-boot-done | Required | Boolean | Indicates core-boot-done upstart signal. |
init-boot-done | Required | Boolean | Indicates init-boot-done upstart signal. |
datastore-init-start | Required | Boolean | Indicates datastore-init-start upstart signal. |
minimal-boot-done | Required | Boolean | Indicates minimal-boot-done upstart signal. |
rest-boot-done | Required | Boolean | Indicates rest-boot-done upstart signal. |
boot-done | Required | Boolean | Indicates boot-done upstart signal. |
Contents