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, -k and -w to 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 the DEBIAN_FRONTEND environment 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 (default 2). 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 than 0 should prevent false positives but may, in extreme cases, cause false negatives. Values higher than 2 should 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 -r parameter): (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 -f parameter πŸŽ€
  • 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> 🫢

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