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> |
---|
salt.modules.restartcheck.
restartcheck
(ignorelist=None, blacklist=None, excludepid=None, verbose=True)¶Analyzes files openeded by running processes and seeks for packages which need to be restarted.
Parameters: |
|
---|---|
Returns: | True if no packages for restart found. False on failure. String with checkrestart output if some package seems to need to be restarted. |
New in version 2015.8.3.
CLI Example: .. code-block:: bash
salt '*' restartcheck.restartcheck
Generated on April 03, 2018 at 06:37:10 MDT.
You are viewing docs for the previous stable release, 2016.11.9. Switch to docs for the latest stable release, 2017.7.4, or to a recent doc build from the develop branch.
© 2018 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy