[systemd-devel] systemd.timer every X days?

Ian Pilcher arequipeno at gmail.com
Tue Jul 28 16:13:42 UTC 2020


On 7/28/20 11:07 AM, Mantas Mikulėnas wrote:
> I'd create a single raidcheck.service that runs daily and calls a script 
> that itself determines which device to check, e.g. /dev/md$[dayofyear % 16].

That is the approach that I'm taking, although it means a fair bit of
work.  I need to parse a configuration file, do a bunch of date-related
math, etc., as I don't really want to hard-code the number of RAID
devices into a C program.

-- 
========================================================================
                  In Soviet Russia, Google searches you!
========================================================================


More information about the systemd-devel mailing list