Start and stop go-sbot process #78
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-workspace#78
Loading…
Reference in New Issue
No description provided.
Delete Branch "sbot_process_start_stop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 theStart sbot
andRestart 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 topub
. Then the settings menu would have buttons such asStart pub
instead ofStart sbot
.