![]() |
![]()
| ![]() |
![]()
NAMEcheckrestart —
check for processes that may need restarting
SYNOPSIS
DESCRIPTIONThecheckrestart command attempts to find processes that
need restarting following a software upgrade, as indicated by their underlying
executable or shared libraries no longer appearing on disk.
For full system-wide checks, The following options are available:
If any proc operands are specified, they are treated as process names, IDs, and group IDs to limit checks to. EXAMPLESCheck all processes visible by the user:# checkrestart PID JID USER COMMAND WHY ARGUMENTS 44960 0 freaky weechat .so /usr/local/bin/weechat 81345 0 freaky tmux bin tmux: server (/tmp/tmux-1001/default) 80307 0 freaky tmux bin tmux: client (/tmp/tmux-1001/default) 18115 1 nobody memcached bin /usr/local/bin/memcached This output indicates Check only processes named weechat and tmux: # checkrestart weechat tmux Check only processes with PID 142 and 157: # checkrestart 142 157 Check only processes in PGID 117: # checkrestart -- -117 SEE ALSOprocstat(1), libxo(3), xo_parse_args(3), jail(8), service(8)HISTORYAcheckrestart command first appeared in the
debian-extras package in Debian Linux.
This implementation follows a similar idea, and is based on a
prior version in the author's An unrelated but similar AUTHORSThomas Hurst ⟨tom@hur.st⟩BUGScheckrestart may report both false positives and false
negatives, depending on program and kernel behaviour, and should be considered
strictly "best-effort".
In particular, retrieval of pathnames is implemented using the
kernel's name cache — if an executable or library path is not in the
name cache due to an eviction, or use of a file system which does not use
the name cache, The use of the name cache also means it is not yet possible to report which files are considered missing.
|