mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 20:21:57 +00:00
add some logging
This commit is contained in:
@@ -146,6 +146,8 @@ async def service_active(service_name : str) -> bool:
|
|||||||
|
|
||||||
async def service_restart(service_name : str, block : bool = True) -> bool:
|
async def service_restart(service_name : str, block : bool = True) -> bool:
|
||||||
await run(["systemctl", "daemon-reload"])
|
await run(["systemctl", "daemon-reload"])
|
||||||
|
logger.info("Systemd reload done.")
|
||||||
|
|
||||||
cmd = ["systemctl", "restart", service_name]
|
cmd = ["systemctl", "restart", service_name]
|
||||||
|
|
||||||
if not block:
|
if not block:
|
||||||
|
|||||||
@@ -240,6 +240,7 @@ class Updater:
|
|||||||
await self.download_decky_binary(download_url, version, size_in_bytes=size_in_bytes)
|
await self.download_decky_binary(download_url, version, size_in_bytes=size_in_bytes)
|
||||||
|
|
||||||
async def do_restart(self):
|
async def do_restart(self):
|
||||||
|
logger.info("Restarting loader for update.")
|
||||||
await service_restart("plugin_loader", block=False)
|
await service_restart("plugin_loader", block=False)
|
||||||
|
|
||||||
async def do_shutdown(self):
|
async def do_shutdown(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user