teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpmdb-migrate.service

Neal Gompa 0b9f81
[Unit]
Neal Gompa 0b9f81
Description=RPM database migration to /usr
Neal Gompa 0b9f81
ConditionPathExists=/var/lib/rpm/.migratedb
Neal Gompa 0b9f81
Neal Gompa 0b9f81
# This should run before any daemons that may open the rpmdb
Neal Gompa 0b9f81
DefaultDependencies=no
Neal Gompa 0b9f81
After=sysinit.target
Neal Gompa 0b9f81
Before=basic.target shutdown.target
Neal Gompa 0b9f81
Conflicts=shutdown.target
Neal Gompa 0b9f81
# In case /var is remote-mounted
Neal Gompa 0b9f81
RequiresMountsFor=/var
Neal Gompa 0b9f81
Neal Gompa 0b9f81
[Service]
Neal Gompa 0b9f81
Type=oneshot
Neal Gompa 0b9f81
ExecStart=/usr/lib/rpm/rpmdb_migrate
Neal Gompa 0b9f81
Neal Gompa 0b9f81
[Install]
Neal Gompa 0b9f81
WantedBy=basic.target