You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
446 B
19 lines
446 B
[Unit] |
|
Description=RPM database rebuild |
|
ConditionPathExists=/var/lib/rpm/.rebuilddb |
|
|
|
# This should run before any daemons that may open the rpmdb |
|
DefaultDependencies=no |
|
After=sysinit.target |
|
Before=basic.target shutdown.target |
|
Conflicts=shutdown.target |
|
# In case /var is remote-mounted |
|
RequiresMountsFor=/var |
|
|
|
[Service] |
|
Type=oneshot |
|
ExecStart=/usr/bin/rpmdb --rebuilddb |
|
ExecStartPost=rm -f /var/lib/rpm/.rebuilddb |
|
|
|
[Install] |
|
WantedBy=basic.target
|
|
|