richardphibel / rpms / rpm

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