diff options
Diffstat (limited to 'backend/src/localplatformlinux.py')
| -rw-r--r-- | backend/src/localplatformlinux.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/src/localplatformlinux.py b/backend/src/localplatformlinux.py index 1f857f27..4557d93f 100644 --- a/backend/src/localplatformlinux.py +++ b/backend/src/localplatformlinux.py @@ -156,6 +156,12 @@ async def service_start(service_name : str) -> bool: res = run(cmd, stdout=PIPE, stderr=STDOUT) return res.returncode == 0 +async def restart_webhelper() -> bool: + logger.info("Restarting steamwebhelper") + # TODO move to pkill + res = run(["killall", "-s", "SIGTERM", "steamwebhelper"], stdout=DEVNULL, stderr=DEVNULL) + return res.returncode == 0 + def get_privileged_path() -> str: path = os.getenv("PRIVILEGED_PATH") |
