procs-need-restart - find processes that need restarting after upgrade
procs-need-restart is a simple program designed to help to find processes that need restarting after upgrade. It reports processes that use (maps into memory) files that have been deleted or replaced on disk (and the new files are not identical to the mapped ones).
The command accepts one or more PID of processes to scan. If no positional argument is given, all processes running on the system (except kernel processes) are scanned. But if user’s effective UID is not 0 (i.e. not running as root), processes the user has no permissions to examine are ignored.
This program is part of apk-autoupdate package.
- -f pattern
-
Specify paths of mapped files to include/exclude from checking. Syntax is identical with fnmatch(3) with no flags, but with leading “!” for negative match (exclude). This option may be repeated multiple times.
Example:
"!/dev/* !/home/* !/run/* !/tmp/* !/var/* *"
. - -v
-
Report all affected mapped files.
- -h
-
Show this message and exit.
- -V
-
Print program version and exit.
-
0 - clean exit, no error has encountered
-
1 - some error has encountered
-
100 - wrong usage (invalid option or argument given)
Report bugs to the project’s issue tracker at https://github.com/jirutka/apk-autoupdate/issues.