kdave / btrfsmaintenance

Scripts for btrfs maintenance tasks like periodic scrub, balance, trim or defrag on selected mountpoints or directories.
GNU General Public License v2.0
897 stars 79 forks source link

allow user options for systemd timers #104

Open jgilbert2017 opened 2 years ago

jgilbert2017 commented 2 years ago

please add support for a system specific /etc/ config file to allow additional options to be set inside the systemd timer script by the command btrfsmaintenance-refresh-cron.sh timer.

my use case is that i want to set RandomizedDelaySec= but i would like to do so without editing btrfsmaintenance-refresh-cron.sh so that i dont lose changes if the script is ever upgraded.

DaAwesomeP commented 1 year ago

For Systemd you can use overrides: https://www.freedesktop.org/software/systemd/man/systemd.unit.html#id-1.14.3