Repository navigation
Retry bt-agent until bluetooth.service is active #13620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: quattro
Are you sure you want to change the base?
Changes from all commits
6658680
41628d2
b719dc0
7b90886
e5805eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,8 @@ source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh" | |
|
|
||
| service="$ROOT/default/systemd/user/bt-agent.service" | ||
|
|
||
| grep -Fx 'ExecCondition=/usr/bin/systemctl is-active --quiet bluetooth.service' "$service" >/dev/null | ||
| pass "bt-agent skips when bluetooth.service is inactive" | ||
| grep -Fx 'ExecStartPre=/usr/bin/systemctl is-active --quiet bluetooth.service' "$service" >/dev/null | ||
| pass "bt-agent retries when bluetooth.service is not yet active" | ||
|
Comment on lines
+9
to
+10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| grep -Fx 'Restart=on-failure' "$service" >/dev/null | ||
| pass "bt-agent still restarts after runtime failures" | ||
|
|
@@ -31,6 +31,9 @@ grep -Fx 'systemctl --user daemon-reload' "$first_run_units" >/dev/null | |
| grep -F 'omarchy-sleep-lock.service' "$first_run_units" >/dev/null | ||
| pass "first-run reloads and enables the sleep lock service" | ||
|
|
||
| grep -Fx 'systemctl --user enable --no-block --now bt-agent.service || failed=1' "$first_run_units" >/dev/null | ||
| pass "first-run does not fail while bt-agent waits for bluetoothd" | ||
|
|
||
| upgrade_to_quattro="$ROOT/bin/omarchy-upgrade-to-quattro" | ||
| grep -F '6870b232a6c0474b59187882e6d25ae771bba735098bcbedef8a2b73b97e2b6a' "$upgrade_to_quattro" >/dev/null | ||
| grep -F 'bcd1a76cb5c63514922bc5e11af22ae480fc6d06a99863364e02bdf3c7bdceaf' "$upgrade_to_quattro" >/dev/null | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bluetooth.serviceis masked or persistently failing, this check fails on every start attempt. The existing two-second restart interval then produces repeated failures and log entries instead of leaving the unit idle asExecConditiondid. Consider a backoff or a way to distinguish delayed startup from a service that will not start.Knowledge Base Used: Desktop session and window management
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!