Skip to content

Commit

Permalink
docs: modify docs for automated backup to append to SYSTEMD_WANTS rat…
Browse files Browse the repository at this point in the history
…her than overwrite

fixes #8641
In the example, setting SYSTEMD_WANTS instead of appending may prevent
other autostart services attached by earlier udev rules from launching.
This commit changes = to += to fix this behavior.
  • Loading branch information
httpdev committed Jan 19, 2025
1 parent 9630585 commit de9d46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/deployment/automated-local.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Find out the ID of the partition table of your backup disk (here assumed to be /

Then, create ``/etc/backups/80-backup.rules`` with the following content (all on one line)::

ACTION=="add", SUBSYSTEM=="block", ENV{ID_PART_TABLE_UUID}=="<the PTUUID you just noted>", TAG+="systemd", ENV{SYSTEMD_WANTS}="automatic-backup.service"
ACTION=="add", SUBSYSTEM=="block", ENV{ID_PART_TABLE_UUID}=="<the PTUUID you just noted>", TAG+="systemd", ENV{SYSTEMD_WANTS}+="automatic-backup.service"

The "systemd" tag in conjunction with the SYSTEMD_WANTS environment variable has systemd
launch the "automatic-backup" service, which we will create next, as the
Expand Down

0 comments on commit de9d46a

Please sign in to comment.