Module system

System related tasks

Type system

system.init()

Initialize the module.

system.reboot(reason)

Requests a reboot of the system, with an optional reason passed as a string, which will be logged.

Type system

Field(s)

system.init()

Initialize the module.

No service provided by this module will work unless this initializer function has been called first.

Return values

  1. a true value upon success

  2. nil followed by an error message otherwise.

system.reboot(reason)

Requests a reboot of the system, with an optional reason passed as a string, which will be logged.

Parameter

  • reason : the (logged) reason why the reboot is requested

Return values

  1. non-nil if the request has been received.

  2. nil followed by an error message otherwise.