Skip to content

Add --configtest argument and service#2

Open
gissf1 wants to merge 7 commits into
jasongaunt:masterfrom
gissf1:add-configtest-and-service
Open

Add --configtest argument and service#2
gissf1 wants to merge 7 commits into
jasongaunt:masterfrom
gissf1:add-configtest-and-service

Conversation

@gissf1
Copy link
Copy Markdown

@gissf1 gissf1 commented Apr 3, 2026

After adding support for my hardware, I realized that I don't want to manage long running logs and ensuring the service stays running. So I aimed to create a systemd service file to run it.

While doing this, I realized that if the configuration file every failed to parse, I wouldn't necessarily know, so I added a configuration validation flag (--configtest) as well. The service uses this before starting to ensure the configuration is sane. If run on the command line, this will show a message explaining why the configuration failed to parse. It also returns an exit code of Zero on success, or 1 on any failure.

@gissf1 gissf1 marked this pull request as draft April 3, 2026 11:23
@gissf1 gissf1 marked this pull request as ready for review April 3, 2026 11:23
@gissf1 gissf1 closed this Apr 3, 2026
@gissf1 gissf1 deleted the add-configtest-and-service branch April 3, 2026 11:33
@gissf1 gissf1 restored the add-configtest-and-service branch April 3, 2026 11:36
@gissf1 gissf1 reopened this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant