Needrestart: Unterschied zwischen den Versionen

Aus Foxwiki
K Textersetzung - „Man-Pages“ durch „Man-Page“
 
(33 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
= Beschreibung =
= Beschreibung =
= Installation =
= Installation =
# '''apt install needrestart'''
= Syntax =
= Syntax =
== Parameter ==
# '''needrestart [-(v|q)] [-n] [-c <cfg>] [-r <mode>] [-f <fe>] [-u <ui>] [-(b|p)] [-kl]'''
 
== Optionen ==
== Optionen ==
= Konfiguration =
{| class="wikitable sortable"
= Anwendungen =
|-
= USAGE =
! Option !! Beschreibung
Usage:
|-
 
| -v || be more verbose
      needrestart [-(v|q)] [-n] [-c <cfg>] [-r <mode>] [-f <fe>] [-u <ui>] [-(b|p)] [-kl]
|-
 
| -q || be quiet
-v    be more verbose
|-
 
| -m <mode> || set level of technical details
-q     be quiet
 
-m <mode>
      set level of technical details


  e  (e)asy mode
e  (e)asy mode


  a  (a)dvanced mode
a  (a)dvanced mode
|-
| -n || set default answer to 'no'
|-
| -c <cfg> || config filename
|-
| -r <mode> || set restart mode


-n    set default answer to 'no'
l  (l)ist only


-c <cfg>
i  (i)nteractive restart
      config filename


-r <mode>
a  (a)utomatically restart
      set restart mode


  l  (l)ist only
ATTENTION: If needrestart is configured to run in interactive mode but is run non-interactive (i.e. unattended-upgrades) it will fallback to list only mode.
|-
| -b || enable batch mode
|-
| -p || nagios plugin mode: makes output and exit codes nagios compatible
|-
| -f <fe> || override debconf(7) frontend, sets the DEBIAN_FRONTEND environment variable to <fe>
|-
| -u <ui> || use preferred UI package (-u ? shows available packages)
|-
| -k || only check for obsolete kernel
|-
| -l || only check for obsolete libraries
|}


  i  (i)nteractive restart
= Umgebung =
The following environment variables can be used to override the config file options. Command line  parameters do always supersede them.


  a  (a)utomatically restart
{| class="wikitable sortable"
 
|-
      ATTENTION: If needrestart is configured to run in interactive mode but is run non-interactive (i.e.
! Umgebungsvariable  !! Beschreibung
      unattended-upgrades) it will fallback to list only mode.
|-
 
| NEEDRESTART_MODE || Change  the  configured  restart  mode  (see  also the -r parameter): (l)ist only, (i)nteractive or (a)utomatically
-b    enable batch mode
|}
 
-p    nagios plugin mode: makes output and exit codes nagios compatible
 
-f <fe>
      override debconf(7) frontend, sets the DEBIAN_FRONTEND environment variable to <fe>
 
-u <ui>
      use preferred UI package (-u ? shows available packages)
 
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  parame‐
ters do always supersede them.
 
= 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 the following additional environment variables:
When used with apt-get(8) needrestart supports the following additional environment variables:


= DEBIAN_FRONTEND =
{| class="wikitable sortable"
      The debconf(7) frontend to use, can also set using the -f parameter.
|-
 
! Umgebungsvariable  !! Beschreibung
= NEEDRESTART_SUSPEND =
|-
      If set to a non-empty value the apt-get(8) hook will not run needrestart after installing or updat‐
| DEBIAN_FRONTEND || debconf(7) frontend to use, can also set using the -f parameter.
      ing packages.
|-
| NEEDRESTART_SUSPEND || If set to a non-empty value the apt-get(8) hook will not run needrestart after installing or updating packages.
|}


= Links =
= Links =
== Dateien ==
== Dateien ==
== Man-Pages ==
== Man-Page ==
== Intern ==
== Intern ==
== Weblinks ==
== Weblinks ==
# https://github.com/liske/needrestart
# https://github.com/liske/needrestart
=Kontrollfragen=
<div class="toccolours mw-collapsible mw-collapsed">
''Testfrage 1''
<div class="mw-collapsible-content">'''Antwort1'''</div>
</div>
<div class="toccolours mw-collapsible mw-collapsed">
''Testfrage 2''
<div class="mw-collapsible-content">'''Antwort2'''</div>
</div>
<div class="toccolours mw-collapsible mw-collapsed">
''Testfrage 3''
<div class="mw-collapsible-content">'''Antwort3'''</div>
</div>
<div class="toccolours mw-collapsible mw-collapsed">
''Testfrage 4''
<div class="mw-collapsible-content">'''Antwort4'''</div>
</div>
<div class="toccolours mw-collapsible mw-collapsed">
''Testfrage 5''
<div class="mw-collapsible-content">'''Antwort5'''</div>
</div>
[[Kategorie:Linux/Software/Verwaltung]]
[[Kategorie:Linux/Befehl]]

Aktuelle Version vom 6. November 2024, 12:43 Uhr

needrestart checks which daemons need to be restarted after library upgrades.

Beschreibung

Installation

# apt install needrestart

Syntax

# needrestart [-(v|q)] [-n] [-c <cfg>] [-r <mode>] [-f <fe>] [-u <ui>] [-(b|p)] [-kl]

Optionen

Option Beschreibung
-v be more verbose
-q be quiet
-m <mode> set level of technical details

e (e)asy mode

a (a)dvanced mode

-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: If needrestart is configured to run in interactive mode but is run non-interactive (i.e. unattended-upgrades) it will fallback to list only mode.

-b enable batch mode
-p nagios plugin mode: makes output and exit codes nagios compatible
-f <fe> override debconf(7) frontend, sets the DEBIAN_FRONTEND environment variable to <fe>
-u <ui> use preferred UI package (-u ? shows available packages)
-k only check for obsolete kernel
-l only check for obsolete libraries

Umgebung

The following environment variables can be used to override the config file options. Command line parameters do always supersede them.

Umgebungsvariable Beschreibung
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 the following additional environment variables:

Umgebungsvariable Beschreibung
DEBIAN_FRONTEND debconf(7) frontend to use, can also set using 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.

Links

Dateien

Man-Page

Intern

Weblinks

  1. https://github.com/liske/needrestart

Kontrollfragen

Testfrage 1

Antwort1

Testfrage 2

Antwort2

Testfrage 3

Antwort3

Testfrage 4

Antwort4

Testfrage 5

Antwort5