chantra / rpms / rpm

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