CRecordReboot

This message initiates a node reboot. The reboot can occur immediately, or at a specific time. The exit code can also be specified.

The message is part of the API of the software update or the NY_LocalSoftwareUpdaterPlugIn plugin. The message belongs to a nanoservice in the SYSTEM namespace.

{
  "id": "12a32a43-605a-465e-9af5-7a11285bae5f",
  "name": "REBOOT",
  "isService": "true",
  "namespaces": "SYSTEM",
  "description": "Reboot the node.",
  "slots": [
    {
      "key": "1",
      "name": "SESSION_TOKEN",
      "direction": "REQUEST",
      "mandatory": "true",
      "type": "STRING",
      "description": "The session token to check authorization."
    },
    {
      "key": "2",
      "name": "TIME",
      "direction": "REQUEST",
      "mandatory": "false",
      "type": "ZONED_DATE_TIME",
      "description": "Optional: The time to reboot."
    },
    {
      "key": "3",
      "name": "CODE",
      "direction": "REQUEST",
      "mandatory": "false",
      "type": "INT",
      "description": "The application exit code(default: 1)."
    }
  ]
}

Arguments

  • SESSION_TOKEN : Valid session token. The NY_Shutdown permission is required for the reboot.
  • TIME : Optional: The time at which the reboot should occur.
  • CODE : The application exit code. The default value is 1.

nyssr.net - Innovative Distributed System