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
-
a true value upon success
-
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
-
non-nil if the request has been received.
-
nil
followed by an error message otherwise.
-