From: Jacek Konieczny Date: Fri, 10 Mar 2017 13:02:24 +0000 (+0100) Subject: BR: dlm-devel X-Git-Tag: auto/th/mdadm-4.0-3~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=7a204919fcd914c44d597263b2d2aa20f4ad259d;p=packages%2Fmdadm.git BR: dlm-devel --- diff --git a/cronjob-mdadm.service b/cronjob-mdadm.service new file mode 100644 index 0000000..a046894 --- /dev/null +++ b/cronjob-mdadm.service @@ -0,0 +1,5 @@ +[Unit] +Description=mdadm-checkarray cronjob + +[Service] +ExecStart=/sbin/mdadm-checkarray --cron --all --quiet diff --git a/cronjob-mdadm.timer b/cronjob-mdadm.timer new file mode 100644 index 0000000..21ed577 --- /dev/null +++ b/cronjob-mdadm.timer @@ -0,0 +1,10 @@ +[Unit] +Description=mdadm-checkarray cronjob timer + +[Timer] +OnCalendar=Sun *-*-1,2,3,4,5,6 00:57:00 + +[Install] +WantedBy=cronjobs.target + +# vi: ft=systemd diff --git a/mdadm.spec b/mdadm.spec index 19d64ad..c4b6d9a 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -19,6 +19,7 @@ Source3: %{name}.cron Source4: %{name}-checkarray Source5: %{name}.service URL: https://www.kernel.org/pub/linux/utils/raid/mdadm/ +BuildRequires: dlm-devel BuildRequires: groff BuildRequires: rpmbuild(macros) >= 1.213 %if %{with initrd}