checkrestart functionality for Debian and Red Hat Based systems
Identifies services (processes) that are linked against deleted files (for example after downloading an updated binary of a shared library).
Based on checkrestart script from debian-goodies (written by Matt Zimmerman for the Debian GNU/Linux distribution, https://packages.debian.org/debian-goodies) and psdel by Sam Morris.
Jiri Kotlin <jiri.kotlin@ultimum.io>
Analyzes files openeded by running processes and seeks for packages which need to be restarted.
ignorelist -- string or list of packages to be ignored.
blacklist -- string or list of file paths to be ignored.
excludepid -- string or list of process IDs to be ignored.
verbose -- boolean, enables extensive output.
timeout -- int, timeout in minute.
{ 'result': False, 'comment': '<reason>' }
.
String with checkrestart output if some package seems to need to be restarted or
if no packages need restarting.
Dict on error
New in version 2015.8.3.
CLI Example:
salt '*' restartcheck.restartcheck
Generated on April 30, 2024 at 17:51:03 UTC.
You are viewing docs for the latest stable release, 3007.0. Switch to docs for the previous stable release, 3006.8, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy