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
900 stars 79 forks source link

Add support for systemd timers. #34

Closed comio closed 7 years ago

comio commented 7 years ago

Hi,

I'm using systemd timers instead cronjob. I prefer to avoid mixed solution cron/systemd on my system and I created this trivial patch.

I hope to be useful.

ciao

luigi

Djelibeybi commented 7 years ago

Looks like btrfs-scrub.service is an unmodified copy of btrfs-trim.service. :)

comio commented 7 years ago

My mistake.

Give me any feedback. After that I will rebase and squash the patches into into just one.

Thanks.

ciao

luigi

comio commented 7 years ago

Hi @kdave and @Djelibeybi,

I rewrite the timers and moved the management code into -refresh-cron.sh following suggestion from @madmartin (gentoo). I cannot validate .spec file because I'm not a rpm user, please check yourself if you can.

I hope in your feedback.

ciao

luigi

NB: When you will give me an ok I will rebase and regenerate the patches removing the noise.

comio commented 7 years ago

any comment?

ciao

luigi

comio commented 7 years ago

Continue on #35