rackerlabs / auter

Automatic updates for RHEL, Debian, and their derivatives, with the ability to run pre/post hooks & reboot afterwards.
Apache License 2.0
67 stars 18 forks source link

check_package_manager_lock can fail when yum is not running due to stale pid file #207

Closed mark-hyde closed 5 years ago

mark-hyde commented 5 years ago

check_package_manager_lock can report that /var/run/yum.pid exists (which is true) when yum itself is not running causing the auter --apply to fail. Suggest modifying the check to see whether the pid in that file is running rather than testing for the existence of the file.

rhodesn commented 5 years ago

This is now in 0.12.2.