Skip to content

Commit

Permalink
file: fix tmpfiles-clean config
Browse files Browse the repository at this point in the history
FC-40636

IOReadIOPSMax/IOWriteIOPSMax are part of the `[Service]` section.
  • Loading branch information
Ma27 committed Sep 5, 2024
1 parent f09e356 commit d92f27b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.d/20240905_115653_mb_FC_40636_systemd_settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* The `SymlinkAndCleanup` internally uses the `DeploymentTrash` component internally which
deletes old code using `systemd-tmpfiles` and throttles the operation with `IOReadIOPSMax`
and `IOWriteIOPSMax`.

This didn't have any effect before because these settings were wrongly placed in `[Unit]`
instead of `[Service]`.
2 changes: 1 addition & 1 deletion src/batou_ext/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def configure(self):
"d {{component.trashdir}} 0755 - - 1h -"
];
systemd.services."systemd-tmpfiles-clean".unitConfig = {
systemd.services."systemd-tmpfiles-clean".serviceConfig = {
IOReadIOPSMax="{{component.trashdir}} {{component.read_iops_limit}}";
IOWriteIOPSMax="{{component.trashdir}} {{component.write_iops_limit}}";
};
Expand Down

0 comments on commit d92f27b

Please sign in to comment.