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

Run or document about `systemctl daemon-reload` #93

Open Seb35 opened 3 years ago

Seb35 commented 3 years ago

When we run systemctl restart btrfsmaintenance-refresh.service and then systemctl status btrfs-scrub.timer (for instance), there is a warning:

Warning: The unit file, source configuration file or drop-ins of btrfs-scrub.timer changed on disk. Run 'systemctl daemon-reload' to reload units.

Consequently it should either be run systemctl daemon-reload at the end of btrfsmaintenance-refresh-cron.sh or documented to run it. (I’m not sure if it is a good practice to automatically run this command - I don’t know if there could be side-effects on other systemd units.)