alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
813822
[Unit]
813822
Description=RPM database rebuild
813822
ConditionPathExists=/var/lib/rpm/.rebuilddb
813822
813822
# This should run before any daemons that may open the rpmdb
813822
DefaultDependencies=no
813822
After=sysinit.target
813822
Before=basic.target shutdown.target
813822
Conflicts=shutdown.target
813822
# In case /var is remote-mounted
813822
RequiresMountsFor=/var
813822
813822
[Service]
813822
Type=oneshot
813822
ExecStart=/usr/bin/rpmdb --rebuilddb
813822
ExecStartPost=rm -f /var/lib/rpm/.rebuilddb
813822
813822
[Install]
813822
WantedBy=basic.target