Blame rpmdb-rebuild.service
|
Panu Matilainen |
b07066 |
[Unit]
|
|
Panu Matilainen |
b07066 |
Description=RPM database rebuild
|
|
Panu Matilainen |
b07066 |
ConditionPathExists=/var/lib/rpm/.rebuilddb
|
|
Panu Matilainen |
b07066 |
|
|
Panu Matilainen |
b07066 |
# This should run before any daemons that may open the rpmdb
|
|
Panu Matilainen |
b07066 |
DefaultDependencies=no
|
|
Panu Matilainen |
b07066 |
After=sysinit.target
|
|
Panu Matilainen |
b07066 |
Before=basic.target shutdown.target
|
|
Panu Matilainen |
b07066 |
Conflicts=shutdown.target
|
|
Panu Matilainen |
b07066 |
# In case /var is remote-mounted
|
|
Panu Matilainen |
b07066 |
RequiresMountsFor=/var
|
|
Panu Matilainen |
b07066 |
|
|
Panu Matilainen |
b07066 |
[Service]
|
|
Panu Matilainen |
b07066 |
Type=oneshot
|
|
Panu Matilainen |
b07066 |
ExecStart=/usr/bin/rpmdb --rebuilddb
|
|
Panu Matilainen |
b07066 |
ExecStartPost=rm -f /var/lib/rpm/.rebuilddb
|
|
Panu Matilainen |
b07066 |
|
|
Panu Matilainen |
b07066 |
[Install]
|
|
Panu Matilainen |
b07066 |
WantedBy=basic.target
|