mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-30 01:32:26 +00:00
12 lines
242 B
Ucode
12 lines
242 B
Ucode
log("Initiating reboot");
|
|
|
|
include('reboot_cause.uc', { reason: 'reboot' });
|
|
|
|
system("(sleep 10; reboot)&");
|
|
system("/etc/init.d/ucentral stop");
|
|
|
|
let err = ctx.error();
|
|
|
|
if (err != null)
|
|
result(2, "Reboot call failed with status %s", err);
|