feat: trigger via systemd .device unit instead of udev RUN+= #3

Merged
diewi merged 1 commit from feature/systemd-by-disk into main 2026-07-19 22:53:50 +02:00
Owner

udev starts RUN+= processes in a restricted context (permissions, environment,
tight time budget), which has caused failures. Replace the workstation trigger
with a oneshot service pulled in by the disk's systemd .device unit, running in
the full system context.

  • add examples/systemd/backup-extern.service.example (device-triggered oneshot;
    documents systemd-escape and one After=/WantedBy= per disk for rotation)
  • remove examples/udev/ rule and all references
  • packaging (debian/install, PKGBUILD, Makefile): ship the new unit, drop udev
  • README: rewrite Trigger section (why not udev + deployment steps), update
    repo layout and the multi-disk rotation notes
  • generalize "udev event" wording to "trigger event" where the lock is described
udev starts RUN+= processes in a restricted context (permissions, environment, tight time budget), which has caused failures. Replace the workstation trigger with a oneshot service pulled in by the disk's systemd .device unit, running in the full system context. - add examples/systemd/backup-extern.service.example (device-triggered oneshot; documents systemd-escape and one After=/WantedBy= per disk for rotation) - remove examples/udev/ rule and all references - packaging (debian/install, PKGBUILD, Makefile): ship the new unit, drop udev - README: rewrite Trigger section (why not udev + deployment steps), update repo layout and the multi-disk rotation notes - generalize "udev event" wording to "trigger event" where the lock is described
feat: trigger via systemd .device unit instead of udev RUN+=
All checks were successful
Build packages / Build .deb (Debian 13) (pull_request) Successful in 36s
Build packages / Build .pkg.tar.zst (Arch) (pull_request) Successful in 45s
Build packages / Publish release on tag (pull_request) Has been skipped
Build packages / Build .deb (Debian 13) (push) Successful in 35s
Build packages / Build .pkg.tar.zst (Arch) (push) Successful in 33s
Build packages / Publish release on tag (push) Has been skipped
0d5dd6e6b2
udev starts RUN+= processes in a restricted context (permissions, environment,
tight time budget), which has caused failures. Replace the workstation trigger
with a oneshot service pulled in by the disk's systemd .device unit, running in
the full system context.

- add examples/systemd/backup-extern.service.example (device-triggered oneshot;
  documents systemd-escape and one After=/WantedBy= per disk for rotation)
- remove examples/udev/ rule and all references
- packaging (debian/install, PKGBUILD, Makefile): ship the new unit, drop udev
- README: rewrite Trigger section (why not udev + deployment steps), update
  repo layout and the multi-disk rotation notes
- generalize "udev event" wording to "trigger event" where the lock is described
diewi self-assigned this 2026-07-19 22:53:35 +02:00
diewi merged commit 0d5dd6e6b2 into main 2026-07-19 22:53:50 +02:00
diewi deleted branch feature/systemd-by-disk 2026-07-19 22:53:50 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
diewi/backup-diewald!3
No description provided.