systemd-knowledge-patch
systemd changes since training cutoff (latest: v260) -- cgroup v2 only, SysV removal, PrivatePIDs=, BindNetworkInterface=, journalctl invocations, networkd MobileNetwork. Load before writing systemd unit files, journalctl commands, or networkd configs.
What this skill does
# systemd Knowledge Patch (v255--v260) Claude knows systemd unit files, journalctl, systemctl, and basic service management through systemd 254. This skill covers systemd v255 (December 2023) through v260 (February 2026). ## Index | Topic | Reference | Key features | |-------|-----------|--------------| | Breaking Changes | [references/breaking-changes.md](references/breaking-changes.md) | cgroup v1 removed, SysV init removed, journal default persistent, IPForward deprecated, uaccess rules | | Unit File Settings | [references/unit-file-settings.md](references/unit-file-settings.md) | PrivatePIDs, ProtectControlGroups, BindNetworkInterface, MemoryTHP, RestartMode=debug, DeferReactivation | | journald & networkd | [references/journald-and-networkd.md](references/journald-and-networkd.md) | Invocation tracking, ForwardToSocket, MobileNetwork section | ## Breaking Changes at a Glance | Change | Version | Impact | |--------|---------|--------| | cgroup v1 removed | v258 | Only cgroup v2 (unified hierarchy) supported | | SysV init scripts removed | v260 | `systemd-sysv-generator`, `rc-local.service` gone; native units required | | `!!` ExecStart prefix removed | v258 | Ambient capabilities compat prefix silently ignored | | Journal default `persistent` | v259 | Was `auto`; override with `Storage=` in `journald.conf` | | `IPForward=` deprecated | v256 | Use `IPv4Forwarding=`/`IPv6Forwarding=` in `.network` or `networkd.conf` | | uaccess tag requires `ACTION!="remove"` | v258 | Rules using `ACTION=="add"` no longer work | | TTY default mode 0600 | v258 | `mesg n` is default; restore with `-Dtty-mode=0620` | | `KeepConfiguration=dynamic` | v257 | Replaces `dhcp`; preserves DHCPv4/v6, NDISC, IPv4LL | ### IPForward= Migration (v256) Replace `IPForward=` in `.network` files with explicit per-family settings: ```ini # Old (.network file): [Network] IPForward=yes # New (.network file -- per-link): [Network] IPv4Forwarding=yes IPv6Forwarding=yes ``` Or set globally in `networkd.conf`: ```ini # /etc/systemd/networkd.conf [Network] IPv4Forwarding=yes IPv6Forwarding=yes ``` Note: `IPv6SendRA=` and `IPMasquerade=` now imply per-link forwarding, not global sysctl. ### uaccess udev Rules Fix (v258) Rules using `ACTION=="add"` for the `uaccess` tag silently stopped working: ``` # Broken since v258: ACTION=="add", SUBSYSTEM=="hidraw", TAG+="uaccess" # Correct: ACTION!="remove", SUBSYSTEM=="hidraw", TAG+="uaccess" ``` See [references/breaking-changes.md](references/breaking-changes.md) for all breaking changes. ## Quick Reference -- Essential New Settings ### PrivatePIDs= (v257) Run processes as PID 1 in their own PID namespace with isolated `/proc/`: ```ini [Service] PrivatePIDs=yes ``` ### BindNetworkInterface= (v260) Bind all sockets created by the unit to a specific interface (useful for VRF): ```ini [Service] BindNetworkInterface=eth0 ``` ### ProtectControlGroups= extended (v257) `private` creates a new cgroup namespace; `strict` also mounts cgroupfs read-only: ```ini [Service] ProtectControlGroups=strict ``` ### RestartMode=debug (v257) On failure, restart with `$DEBUG_INVOCATION=1` and `LogLevelMax=debug`: ```ini [Service] RestartMode=debug Restart=on-failure ``` ### DeferReactivation= (v257) For calendar timers, skip immediate reactivation if the service is still running: ```ini [Timer] OnCalendar=hourly DeferReactivation=yes ``` ### StateDirectory= read-only suffix (v257) Make managed directories read-only with `:ro` suffix: ```ini [Service] StateDirectory=myapp:ro ``` ### PrivateUsers= new modes (v257/v260) - `identity` (v257) -- identity-maps the first 65536 UIDs/GIDs in a user namespace - `managed` (v260) -- auto-assigns a dynamic transient 65K range via `systemd-nsresourced` ### MemoryTHP= (v260) Per-service Transparent Huge Pages control: ```ini [Service] MemoryTHP=always ``` ### SurviveFinalKillSignal= (v255) Skip the unit during shutdown's final SIGTERM/SIGKILL. Required for soft-reboot survival: ```ini [Service] SurviveFinalKillSignal=yes ``` ### PassFileDescriptorsToExec= (v256) Pass socket FDs to `ExecStartPost=`/`ExecStopPre=`/`ExecStopPost=` via `$LISTEN_FDS`: ```ini [Socket] PassFileDescriptorsToExec=yes ``` See [references/unit-file-settings.md](references/unit-file-settings.md) for the full list including CPUSchedulingPolicy=ext, PrivateTmp=disconnected, WantsMountsFor=, RefreshOnReload=, and fstab options. ## journalctl Invocation Tracking (v257) List and filter by service invocations (analogous to `--list-boots`/`--boot`): ```bash journalctl --list-invocations -u myservice # list all invocations journalctl -I 2 -u myservice # 2nd-to-last invocation ``` ## journald ForwardToSocket= (v256) Forward journal entries to a remote socket in Journal Export Format: ```ini [Journal] ForwardToSocket=tcp:192.168.1.100:5555 MaxLevelSocket=info ``` ## networkd MobileNetwork Section (v260) ModemManager integration for cellular connections in `.network` files: ```ini # /etc/systemd/network/50-mobile.network [Match] Type=wwan [MobileNetwork] APN=internet AllowRoaming=no IPFamily=both ``` | Setting | Values | Purpose | |---------|--------|---------| | `APN=` | string | Access Point Name for the carrier | | `AllowRoaming=` | `yes`/`no` | Allow data roaming | | `IPFamily=` | `ipv4`/`ipv6`/`both` | IP protocol family | ## New Settings Summary | Setting | Version | Section | Purpose | |---------|---------|---------|---------| | `PrivatePIDs=` | v257 | `[Service]` | PID namespace isolation | | `ProtectControlGroups=private\|strict` | v257 | `[Service]` | cgroup namespace / read-only cgroupfs | | `StateDirectory=…:ro` | v257 | `[Service]` | Read-only managed directories | | `DeferReactivation=` | v257 | `[Timer]` | Skip reactivation if service running | | `RestartMode=debug` | v257 | `[Service]` | Debug restart with verbose logging | | `BindNetworkInterface=` | v260 | `[Service]` | Bind sockets to interface | | `MemoryTHP=` | v260 | `[Service]` | Per-service THP control | | `CPUSchedulingPolicy=ext` | v260 | `[Service]` | SCHED_EXT scheduler | | `PassFileDescriptorsToExec=` | v256 | `[Socket]` | Pass FDs to Exec*Post/Pre | | `PrivateUsers=identity` | v257 | `[Service]` | Identity-mapped user namespace | | `PrivateUsers=managed` | v260 | `[Service]` | Auto-assigned UID/GID range | | `PrivateTmp=disconnected` | v257 | `[Service]` | Separate tmpfs (not shared) | | `WantsMountsFor=` | v256 | `[Unit]` | Wants= for mount dependencies | | `SurviveFinalKillSignal=` | v255 | `[Service]` | Survive shutdown kill | | `RefreshOnReload=` | v260 | `[Service]` | Refresh extensions/credentials on reload | | `x-systemd.wants=` | v257 | fstab | Wants= dependency from fstab |
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.