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.
codeauthor: | Jiri Kotlin <jiri.kotlin@ultimum.io> |
---|
Analyzes files openeded by running processes and seeks for packages which need to be restarted.
Parameters: |
|
---|---|
Returns: |
{ 'result': False, 'comment': '<reason>' } String with checkrestart output if some package seems to need to be restarted or if no packages need restarting. |
Return type: |
Dict on error |
New in version 2015.8.3.
CLI Example: .. code-block:: bash
salt '*' restartcheck.restartcheck
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.restartcheck.html