Package: needrestart Version: 3.6-5 Severity: normal Tags: patch Dear Maintainer,
I am using a service created via systemd-run to run unattended-upgrade. Today, needrestart restarted this service as some libraries have been updated, which resulted in two runs, one failed and another one. I suspect that commands started/run via systemd-run will most likely be oneshot commands, which shouldn't be restarted. Therefore, I added run services to override_rc and would like to see this in the default configuration for needrestart. I attached a patch which will do this. Cheers Volker -- Package-specific info: needrestart output: Your outdated processes: baloorunner[4161], DiscoverNotifie[2623], firefox[4238], gmenudbusmenupr[2326], Isolated Web Co[4558, 4560], juk[2583], kaccess[2617], kactivitymanage[2309], kalendarac[2624], kdeconnectd[2588], kded5[2186], kglobalaccel5[2253], krunner[4093], kscreen_backend[2473], ksmserver[2184], kwalletd5[2054], kwin_x11[2187], nextcloud[2561], obexd[2488], plasmashell[2267], pulseaudio[2044], RDD Process[4723], signal-desktop[2773, 3179, 3114, 3122, 2772, 2597], Socket Process[4375], startplasma-x11[2055], thunderbird[3403], Utility Process[4725], Web Content[4003, 4664, 4565, 3903], WebExtensions[3960, 4483], xdg-desktop-por[2816, 2930, 2897], xembedsniproxy[2329], xsettingsd[2335], yakuake[2590] -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.4.0-1-amd64 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages needrestart depends on: ii dpkg 1.21.22 ii gettext-base 0.21-13 ii libintl-perl 1.33-1 ii libmodule-find-perl 0.16-2 ii libmodule-scandeps-perl 1.31-2 ii libproc-processtable-perl 0.636-1 ii libsort-naturally-perl 1.03-4 ii libterm-readkey-perl 2.38-2+b1 ii perl 5.36.0-7 ii xz-utils 5.4.1-0.2 Versions of packages needrestart recommends: ii libpam-systemd 254-1 ii systemd 254-1 Versions of packages needrestart suggests: ii iucode-tool 2.3.1-3 pn needrestart-session | libnotify-bin <none> -- Configuration Files: /etc/needrestart/needrestart.conf changed [not included] -- no debconf information
--- /etc/needrestart/needrestart.conf.old 2023-08-06 09:16:30.057682218 +0200 +++ /etc/needrestart/needrestart.conf 2023-08-06 08:48:21.708226763 +0200 @@ -125,6 +125,7 @@ qr(^unattended-upgrades\.service$) => 0, # do not restart oneshot services from systemd-cron, see also #917073 qr(^cron-.*\.service$) => 0, + qr(^run-.*\.service$) => 0, # ignore rc-local.service, see #852864 qr(^rc-local\.service$) => 0,