michal-grzedzicki / rpms / rpm

Forked from rpms/rpm 5 months ago
Clone
219cf7
[Unit]
219cf7
Description=RPM database rebuild
219cf7
ConditionPathExists=/var/lib/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
219cf7
# In case /var is remote-mounted
219cf7
RequiresMountsFor=/var
219cf7
219cf7
[Service]
219cf7
Type=oneshot
219cf7
ExecStart=/usr/bin/rpmdb --rebuilddb
219cf7
ExecStartPost=rm -f /var/lib/rpm/.rebuilddb
219cf7
219cf7
[Install]
219cf7
WantedBy=basic.target