From 621739bb2b3874809b50c9713322a2c978563d9c Mon Sep 17 00:00:00 2001 From: alfrix Date: Thu, 15 Sep 2022 11:04:06 -0300 Subject: [PATCH] docs: web_api: update allowed system services --- docs/web_api.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/docs/web_api.md b/docs/web_api.md index b30a878..a13703c 100644 --- a/docs/web_api.md +++ b/docs/web_api.md @@ -1165,9 +1165,18 @@ This request will not return. The machine will reboot and the socket connection will drop. #### Restart a system service -Restarts a system service via `sudo systemctl restart {name}`. Currently -the `moonraker`, `klipper`, `MoonCord`, `KlipperScreen` and `webcamd` -services are supported. +Uses: `sudo systemctl restart {name}` + +Services allowed: + +* `crowsnest` +* `MoonCord` +* `moonraker` +* `moonraker-telegram-bot` +* `klipper` +* `KlipperScreen` +* `sonar` +* `webcamd` HTTP request: ```http @@ -1186,8 +1195,10 @@ JSON-RPC request: Returns: -`ok` when complete. Note that if `moonraker` is chosen, the return -value will be sent prior to the service restart. +`ok` when complete. +!!! note + If `moonraker` is chosen, the return + value will be sent prior to the service restart. #### Stop a system service Stops a system service via `sudo systemctl stop `. Currently