public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Remember to actually add the .service file, doh...
@ 2026-11-23  9:33 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:33 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : b0706603296a0ca9188ee26d2696f745b1a9b50d
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2020-04-22T12:18:02+03:00
            Stats  : +19/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/b0706603296a0ca9188ee26d2696f745b1a9b50d?branch=pmatilai-v6

            Log:
            Remember to actually add the .service file, doh...

Should've been in commit c091c2fcdcd40897604c45fa51720746703d2a5b

---
diff --git a/rpmdb-rebuild.service b/rpmdb-rebuild.service
new file mode 100644
index 0000000..0580adb
--- /dev/null
+++ b/rpmdb-rebuild.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=RPM database rebuild
+ConditionPathExists=/var/lib/rpm/.rebuilddb
+
+# This should run before any daemons that may open the rpmdb
+DefaultDependencies=no
+After=sysinit.target
+Before=basic.target shutdown.target
+Conflicts=shutdown.target
+# In case /var is remote-mounted
+RequiresMountsFor=/var
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/rpmdb --rebuilddb
+ExecStartPost=rm -f /var/lib/rpm/.rebuilddb
+
+[Install]
+WantedBy=basic.target

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:33 [rpms/rpm] pmatilai-v6: Remember to actually add the .service file, doh Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox