NEEDRESTART(1)
π needrestart(1) β User Commands π
β¨ NAME β¨
needrestart β needrestart
π DESCRIPTION π
okay so needrestart checks which daemons need to be restarted after library upgrades π₯ like, you upgrade your libs and your running stuff is still clinging to the old versions π needrestart finds those and tells you bestie π«Ά
πΈ USAGE πΈ
Usage:
needrestart [-(v|q)] [-n] [-c <cfg>] [-r <mode>] [-f <fe>] [-u <ui>] [-(b|p|o)] [-x] [-kl]
-vβ be more verbose π’-qβ be quiet π€«-m <mode>β set level of technical details π§eβ (e)asy mode π·aβ (a)dvanced mode π€uβ (u)buntu mode, used to customize the behaviour in the APT hook. See/usr/share/doc/README.Ubuntu. π
-nβ set default answer to 'no' π ββοΈ-c <cfg>β config filename π-r <mode>β set restart mode πlβ (l)ist only πiβ (i)nteractive restart πaβ (a)utomatically restart π€
ATTENTION: bestie, if needrestart is configured to run in interactive mode but is run non-interactive (i.e. unattended-upgrades) it will fall back to list only mode. no cap π¨
-bβ enable batch mode: don't restart anything and produce machine-readable output π¦-pβ nagios plugin mode: makes output and exit codes nagios compatible π-oβ OpenMetrics output mode π this outputs info that OpenMetrics-compatible services can scrape. It implies batch mode. Combine it with any of-l,-kand-wto decide whether the metrics expose outdated libraries, kernel and microcode, respectively. Heads up: to list system-wide outdated libraries, needrestart needs to be run as root π. When listing outdated libraries, a gauge-type metric exposes the number of running processes with such outdated libraries. When exposing kernel or microcode metrics, each one exposes a StateSet-type metric which indicates the current status. Kernel and microcode will also each expose an additional Info-type metric which informs you of the versions of the current vs expected kernel or microcode. it's giving data nerd π€β¨-f <fe>β override the debconf(7) frontend, sets theDEBIAN_FRONTENDenvironment variable to<fe>π-t <seconds>β when checking running interpreter processes, allow process start times that are close to timestamps of files the interpreter uses, within this tolerance (default2). The default of 2 seconds is best for checks of Linux hosts, since system limitations prevent more accurate measurements of process start times π°οΈ Values higher than0should prevent false positives but may, in extreme cases, cause false negatives. Values higher than2should not be necessary.-u <ui>β use preferred UI package (-u ?shows available packages) π§-xβ automatically exit the GUI when there is no process selected by default β¨
By using one of the following options, only the specified checks are performed π
-kβ check for obsolete kernel π«§-lβ check for obsolete libraries π
π ENVIRONMENT π
The following environment variables can be used to override the config file options. Command line parameters always supersede them, periodt π
NEEDRESTART_MODEβ change the configured restart mode (see also the-rparameter): (l)ist only, (i)nteractive or (a)utomatically π
When used with apt-get(8), needrestart supports these additional environment variables π¦
DEBIAN_FRONTENDβ the debconf(7) frontend to use, which you can also set with the-fparameter πNEEDRESTART_SUSPENDβ if set to a non-empty value, the apt-get(8) hook will not run needrestart after installing or updating packages π
π AUTHOR π
Thomas Liske <thomas@fiasko-nw.net> π«Ά
π§Ύ COPYRIGHT π§Ύ
2013 - 2022 (C) Thomas Liske [http://fiasko-nw.net/~thomas/]
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. iykyk, it's open source and totally shareable π
π UPSTREAM π
https://github.com/liske/needrestart
bestie, that's the whole page π needrestart, January 2015, NEEDRESTART(1) π§β¨
π¦ where this page comes from
- ubuntu questing: needrestart 3.11-1ubuntu1 Β· GPL-2.0-only
- ubuntu resolute: needrestart 3.11-1ubuntu2 Β· GPL-2.0-only
- ubuntu stonking: needrestart 3.11-1ubuntu2 Β· GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms