docs: canonize service names and add compatibility matrix#56
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e0f00341d1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| OnCalendar=*-*-* 22:00:00 | ||
| Persistent=true | ||
| AccuracySec=1min | ||
| Unit=pihole-display-dark.service |
There was a problem hiding this comment.
Stop day service when scheduling night mode
Pointing the timer directly at pihole-display-dark.service starts the dark dashboard at 22:00 but never stops display.service, which is enabled to run continuously in the README workflow. Because both services are long-running (Restart=always) framebuffer writers, they can run concurrently and contend for /dev/fb1, so day/night switching does not actually produce a single active mode. This commit introduced that overlap by replacing legacy wrapper units with direct service starts without adding a stop/conflict mechanism.
Useful? React with 👍 / 👎.
|
@codex[agent] a new file and directory was added to the repo, update any affected code in this branch |
Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com>
Summary
Testing
|
Motivation
Description
README.mdto define canonical service names and script targets, added a compatibility table mapping service → script → mode, and removed stale references from the deployment docs.systemd/day.timerandsystemd/night.timerto target the canonical unitsdisplay.serviceandpihole-display-dark.servicerespectively.scripts/piholestats_v1.1.pyasLEGACYin-file to indicate it is kept only for compatibility/manual use whilepiholestats_v1.2.pyis the canonical night-mode target.Testing
python3 -m py_compile scripts/piholestats_v1.1.pyand it succeeded with no syntax errors.rg -n 'piholestats_v1.0|test.py|day-mode.service|dark-mode.service' README.md systemd/day.timer systemd/night.timerto verify legacy names were removed from the canonical timer files and the check passed.cat systemd/day.timerandcat systemd/night.timerto confirm they now referencedisplay.serviceandpihole-display-dark.servicerespectively.Codex Task