]> git.rmz.io Git - dotfiles.git/blobdiff - systemd/system/checkupdates.service
systemd: move checkupdates to systemd services
[dotfiles.git] / systemd / system / checkupdates.service
diff --git a/systemd/system/checkupdates.service b/systemd/system/checkupdates.service
new file mode 100644 (file)
index 0000000..5cabb6a
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=Check pacman updates and dowload packages to cache
+After=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/checkupdates -d
+# checkupdates returns 2 when there are no updates
+SuccessExitStatus=2