Skip to content

Improve --test behavior when the service is already running #87

Closed

Description

@psmsmets

Running:

school-bell schema.json --test

while school-bell.service is active fails with GPIO busy and prints a full traceback because both processes try to claim the same GPIO pins. In contrast, --check works while the service is active.

Expected behavior

Please clarify and implement the intended workflow:

  • Require users to stop school-bell.service before using --test; or
  • Support test mode through the running service.

At minimum, detect unavailable GPIO pins and show a friendly, actionable message instead of a traceback, for example:

GPIO pins are already in use, possibly by school-bell.service. Stop the service before running --test.

Environment

  • school-bell: 0.9.2.post7
  • Error: lgpio.error: 'GPIO busy'

Activity

  1. linked a pull request that will close this issueHandle busy GPIO during test mode #88on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions