From 5fb92ad71232c30cc8eb3405f1a0732f43a08edc Mon Sep 17 00:00:00 2001 From: mini2024 Date: Sat, 22 Mar 2025 16:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20upgrade.sh=20=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E4=BF=AE=E5=A4=8D=20needrestart=20=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=8F=82=E6=95=B0=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=B8=AE?= =?UTF-8?q?=E5=8A=A9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/upgrade.sh | 51 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/debian/upgrade.sh b/debian/upgrade.sh index bacea2e..16235ee 100644 --- a/debian/upgrade.sh +++ b/debian/upgrade.sh @@ -36,4 +36,53 @@ apt -qq update && apt clean && systemctl --failed && apt -qq install needrestart -y && - needrestart -q -r a + needrestart -r a + + +################################################################################ +# needrestart --help + +# needrestart 3.6 - Restart daemons after library updates. + +# Authors: +# Thomas Liske + +# Copyright Holder: +# 2013 - 2022 (C) Thomas Liske [http://fiasko-nw.net/~thomas/] + +# Upstream: +# https://github.com/liske/needrestart + +# 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. + +# Usage: + +# needrestart [-vn] [-c ] [-r ] [-f ] [-u ] [-bkl] + +# -v be more verbose +# -q be quiet +# -m set detail level +# e (e)asy mode +# a (a)dvanced mode +# -n set default answer to 'no' +# -c config filename +# -r set restart mode +# l (l)ist only +# i (i)nteractive restart +# a (a)utomatically restart +# -b enable batch mode +# -p enable nagios plugin mode +# -f override debconf frontend (DEBIAN_FRONTEND, debconf(7)) +# -t tolerate interpreter process start times within this value +# -u use preferred UI package (-u ? shows available packages) + +# By using the following options only the specified checks are performed: +# -k check for obsolete kernel +# -l check for obsolete libraries +# -w check for obsolete CPU microcode + +# --help show this help +# --version show version information \ No newline at end of file