MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / systemctl_reboot

Method systemctl_reboot

OpenHD/ohd_common/src/openhd_reboot_util.cpp:40–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void openhd::reboot::systemctl_reboot() {
41 OHDUtil::run_command("systemctl", {"start", "reboot.target"}, true);
42}
43
44static void command_reboot() { OHDUtil::run_command("reboot", {}, true); }
45static void command_shutdown() { OHDUtil::run_command("shutdown", {}, true); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected