Skip to content

fix(worker): leave a systemd-managed infernet daemon alone; v0.2.30 - #46

Merged
ralyodio merged 1 commit into
masterfrom
fix/infernet-systemd-owner
Oct 14, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/infernet-systemd-owner

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Follow-up to #43 after rolling v0.2.29 out on dev2.

dev2 also runs infernet under infernet.service. The worker started a second daemon on the same config dir, so they fought over socket/port/pidfile (infernet.service NRestarts=347), and the v0.2.29 reaper killed the systemd daemon once because it wasn't the pid in daemon.pid at that instant.

  • When infernet.service is active, the worker neither starts a daemon nor runs infernet update (the daemon auto-updates itself).
  • The reaper only considers daemons in the worker's own cgroup.
  • v0.2.30 (Cargo, JS packages and the latest.json FALLBACK_VERSION).

cargo test -p c0mpute-cli: 13 passed.

🤖 Generated with Claude Code

dev2 runs infernet under its own infernet.service AND the worker started
a second daemon on the same config dir. They fought over the socket,
port and pidfile: infernet.service restarted 347 times, and the v0.2.29
reaper killed the systemd daemon once because it was not the pid in
daemon.pid at that moment.

- infernet_systemd_managed(): when infernet.service is active the worker
  does not start a daemon and does not run `infernet update` (the daemon
  auto-updates itself every 5 min).
- reaper: only daemons in the worker's own cgroup are candidates.
- Bump to 0.2.30, including the release feed's FALLBACK_VERSION.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

8 finding(s)

MEDIUM: 8

Severity Rule Location
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:53
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:95
MEDIUM sh-remote-script-execution scripts/dev-setup.sh:25
MEDIUM sh-eval-expansion scripts/dev-setup.sh:35
MEDIUM sh-remote-script-execution scripts/install.sh:159
MEDIUM sh-remote-script-execution scripts/install.sh:184
MEDIUM sh-remote-script-execution scripts/install.sh:277
MEDIUM sh-remote-script-execution scripts/install.sh:294

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit df06340 into master Oct 14, 2026
12 checks passed
@ralyodio
ralyodio deleted the fix/infernet-systemd-owner branch October 14, 2026 07:34
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