If you got corupted/truncated/deleted file while updating/writing a bad commands, and as a result you cannot run service/app. You might be interested in this command to reinstall them:
rpm -Va --nodeps --nodigest --noscripts --nosignature --nofiledigest --nomode --nordev --nouser --nogroup --nomtime | grep '/lib64' | awk '/^S..../{system("rpm -qf "$2)}' | sort | uniq | xargs yum reinstall -y
rpm
- Verifying a package compare information about the installed files in the package with information about the files taken from the package metadata stored in the rpm database. Among other things, verifying compares the size, type, hash of each file.
grep
- Take only file located where you want to verify,