machine: use direct systemctl commands for reboot/shutdown

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2023-01-16 12:42:21 -05:00
1 parent a154c5fa51
commit db81607370
1 file changed
+2 -2
+2 -2
View File
@@ -780,10 +780,10 @@ class BaseProvider:
return await machine.exec_sudo_command(command)
async def shutdown(self) -> None:
await self._exec_sudo_command(f"shutdown now")
await self._exec_sudo_command("systemctl halt")
async def reboot(self) -> None:
await self._exec_sudo_command(f"shutdown -r now")
await self._exec_sudo_command("systemctl reboot")
async def do_service_action(self,
action: str,