Delete all wardriving session data.
()
| 8535 | # repeated too quickly" until it is reset - so once a box has failed a |
| 8536 | # few times, enabling it fails for a reason that has nothing to do with |
| 8537 | # whatever is actually wrong, and the real error never gets a chance to |
| 8538 | # reappear. This is the same `systemctl reset-failed` the kiosk doctor |
| 8539 | # tells people to run by hand. |
| 8540 | _run_systemctl(['reset-failed', KIOSK_SERVICE]) |
| 8541 | enable_proc = _run_systemctl(['enable', '--now', KIOSK_SERVICE]) |
| 8542 | if enable_proc.returncode != 0: |
| 8543 | err = enable_proc.stderr.strip() or enable_proc.stdout.strip() or 'unknown error' |
| 8544 | logger.error(f"[kiosk] enable --now failed: {err}") |
| 8545 | _kiosk_task_set(phase='failed', |
| 8546 | error=f'Could not start the kiosk service: {err}{_kiosk_failure_detail()}') |
| 8547 | return False |
| 8548 | # `enable --now` returns as soon as the process is spawned, so a kiosk |
| 8549 | # that dies a second later reported success and left the UI waiting on a |
| 8550 | # service that was already gone. Give it a moment and say so instead. |
nothing calls this directly
no test coverage detected