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

Method systemctl_shutdown

OpenHD/ohd_common/src/openhd_reboot_util.cpp:36–38  ·  view source on GitHub ↗

* Systemctl is the nicer way, but sometimes has issues. */

Source from the content-addressed store, hash-verified

34 * Systemctl is the nicer way, but sometimes has issues.
35 */
36void openhd::reboot::systemctl_shutdown() {
37 OHDUtil::run_command("systemctl", {"start", "poweroff.target"}, true);
38}
39
40void openhd::reboot::systemctl_reboot() {
41 OHDUtil::run_command("systemctl", {"start", "reboot.target"}, true);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected