aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/systemd/system/arch-audit.service10
-rw-r--r--etc/systemd/system/arch-audit.timer11
2 files changed, 21 insertions, 0 deletions
diff --git a/etc/systemd/system/arch-audit.service b/etc/systemd/system/arch-audit.service
new file mode 100644
index 0000000..c011069
--- /dev/null
+++ b/etc/systemd/system/arch-audit.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Refresh arch-audit upgradable-CVE report at /run/arch-audit.txt
+Documentation=https://gitlab.archlinux.org/archlinux/arch-audit
+After=network-online.target
+Wants=network-online.target
+ConditionPathExists=/usr/bin/arch-audit
+
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -c '/usr/bin/arch-audit --upgradable >/run/arch-audit.txt.tmp && mv /run/arch-audit.txt.tmp /run/arch-audit.txt'
diff --git a/etc/systemd/system/arch-audit.timer b/etc/systemd/system/arch-audit.timer
new file mode 100644
index 0000000..af1e7f3
--- /dev/null
+++ b/etc/systemd/system/arch-audit.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Daily arch-audit report refresh
+
+[Timer]
+OnCalendar=daily
+AccuracySec=1h
+Persistent=true
+RandomizedDelaySec=1h
+
+[Install]
+WantedBy=timers.target