Scheduled Terminal Reboot Setup
Last updated
Last updated
Obtain the TerminalSpec
object:
Call the setSelfRebootTime
method to set the restart time:
Parameters:
hour
: Restart hour (0-23)
minute
: Restart minute (0-59)
second
: Restart second (0-59)
Return Value: true
indicates success, false
indicates failure.
API Reference: WizarPOS SDK API Documentation
Create a Parameter:
Click Applications > Application, then click the Add icon button.
Package Name: com.wizarpos.wizarviewagent
Reference parameter file: propmanager.json
Key-value pairs explanation:
persist.wp.tms.reboot.time=2,3
: Indicates a random restart between 2 AM and 3 AM, retrying every 10 minutes until 3 AM. Default value is 2,5
.
persist.wp.tms.reboot.days=4
: Indicates a restart every 4 days. If not specified, the default is 4 days, with a maximum of 30 days.
persist.wp.tms.reboot.chkidle=true
: Checks if the current screen has been idle for more than half an hour. Default is true
if not specified.
Apply the Parameter to Terminal or Terminal Group:
Use TMS to apply the configuration to the target terminal or terminal group.
When the restart time is reached, the Agent checks if the terminal screen is on. If the screen is on and in use, the restart will not be executed.
If the screen is on but there are no click events for half an hour, the restart will still be executed even if the screen is on.