You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(services): restart a failed/given-up service from the UI (#81)
* fix(frontend): show a Start button for failed/stopped services, not just inactive
A service in 'failed' (e.g. mavlink-router after hitting its StartLimit with no FC) matched neither the active nor the inactive condition, so the Services page showed no Start/Stop button at all and the unit couldn't be recovered from the UI. Render Start for any non-running state (active !== 'active').
* fix(service-manager): reset-failed before start so a given-up unit can restart
systemd refuses 'systemctl start' on a unit that hit its StartLimit until its failed state is cleared, so the UI Start button would no-op on a service that gave up. Run reset-failed before start; verified on-device that reset-failed is authorized for the service user via the existing per-unit manage-units polkit grant.