Start and stop go-sbot process #78

Merged
glyph merged 5 commits from sbot_process_start_stop into main 2022-01-27 09:25:10 +00:00
Owner

This PR introduces the ability to start, stop and restart the go-sbot systemd process via the /settings/scuttlebutt menu. The buttons are conditionally rendered based on the current mode (ie. if the process is currently running, only the Start sbot and Restart sbot buttons are displayed). A flash message is displayed to communicate whether the action was successful or not.

I've also introduced a checkbox element to the Configure sbot form to allow for enabling / disabling the process. This is titled: Run pub on startup. The Scuttlebutt status page now also shows whether this feature is enabled or disabled.

One other small UI change: I set the colour of the inner circle on the homepage according to the state of the go-sbot process. If the process is active: green. If the process is inactive: orange. This will need more attention but it has feel pretty darn cool while I've been testing :)

Note to myself for later: consider changing all sbot language to pub. Then the settings menu would have buttons such as Start pub instead of Start sbot.

This PR introduces the ability to start, stop and restart the go-sbot systemd process via the `/settings/scuttlebutt` menu. The buttons are conditionally rendered based on the current mode (ie. if the process is currently running, only the `Start sbot` and `Restart sbot` buttons are displayed). A flash message is displayed to communicate whether the action was successful or not. I've also introduced a checkbox element to the `Configure sbot` form to allow for enabling / disabling the process. This is titled: `Run pub on startup`. The Scuttlebutt status page now also shows whether this feature is enabled or disabled. One other small UI change: I set the colour of the inner circle on the homepage according to the state of the go-sbot process. If the process is active: green. If the process is inactive: orange. This will need more attention but it has feel pretty darn cool while I've been testing :) _Note to myself for later: consider changing all `sbot` language to `pub`. Then the settings menu would have buttons such as `Start pub` instead of `Start sbot`._
glyph added the
enhancement
peach-web
peach-stats
labels 2022-01-27 09:20:04 +00:00
glyph added 5 commits 2022-01-27 09:20:39 +00:00
glyph merged commit e474ea519f into main 2022-01-27 09:25:10 +00:00
glyph deleted branch sbot_process_start_stop 2022-01-27 09:25:15 +00:00
Sign in to join this conversation.
No description provided.