Repository navigation
Add Entware init scripts for systems without systemd - #8
Conversation
Entware's own feed needs a package that runs without systemd. Two init scripts in /opt/etc/init.d now run the metadata and image crawls, with pid files so the two warmup-rs processes can be stopped one at a time. They start disabled, so CoreELEC keeps using the systemd units. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gW5bMySbSKFF1ZGDNn
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 372b695b94
ℹ️ 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".
A pid file left by a crash can name an unrelated process that reused the pid. The init scripts now check /proc for warmup-rs in their own mode before they report it running or signal it. The docs and the start message say off instead of disabled, as Google style asks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gW5bMySbSKFF1ZGDNn
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b78aa2c80b
ℹ️ 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".
Outside CoreELEC, warmup-rs keeps its files in ./output, so a crawl started from another folder used other databases. The scripts now start in /opt/var/lib/warmup-rs. Also spell PID in capitals for Vale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gW5bMySbSKFF1ZGDNn
Requested by Allen · project thread
Summary
Entware's own feed needs a package that runs without systemd, so this adds two init scripts:
/opt/etc/init.d/S90warmup-rsruns the metadata crawl, andS91warmup-imagesruns the image crawl. They share their start and stop logic in/opt/share/warmup-rs/warmup.sh.warmup-rsbinary, so Entware'src.funccan't tell them apart withpidof.ENABLED=no, and they're conffiles, so upgrades keep the setting. That stops CoreELEC from running each crawl twice, once from systemd and once from Entware's boot scripts.stopwaits 30 seconds for the crawl to finish its writes, the same as the systemd units, and then kills it.postinstexplains the scripts on systems without systemd, and an upgrade restarts any crawl that's running.prermstops the scripts when the package is removed.A tagged release is the other thing the Entware submission needs. That isn't part of this PR.
Testing
scripts/build-ipk.py. It contains the scripts, andconffileslists the env file and both scripts./opt. Checked a disabled start, start, a second start,check, andstop, which sends SIGTERM. The env file's values reach the process.Generated by Claude Code