Hi François, On 05/23/2015 08:05 AM, Francois Mescam wrote: > Package: needrestart > Version: 2.1-1 > Severity: wishlist > > Dear Maintainer, > > Every time there some program to restart in a session needrestart > write a message on the console used tu run needrestart and send a mail > with the same information. > > Please provide an option for that. > > An easy way to do that is to consider /etc/needrestart/notify.d/600-mail > as a configuration file. So if I modify it for not sending a mail it will > not be replaced by an upgrade.
ACK - although it is a shell script, it is indeed a configuration file. needrestart already ignores any hooks matching m/(~|\.dpkg-[^.]+)$/ . HTH, Thomas > With my best regards > > François > > -- Package-specific info: > needrestart output: > > > > -- System Information: > Debian Release: stretch/sid > APT prefers unstable > APT policy: (900, 'unstable'), (400, 'testing') > Architecture: i386 (i686) > > Kernel: Linux 4.0.0-1-686-pae (SMP w/1 CPU core) > Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages needrestart depends on: > ii dpkg 1.18.0 > ii libmodule-find-perl 0.12-1 > ii libmodule-scandeps-perl 1.16-1 > ii libproc-processtable-perl 0.51-1 > ii libsort-naturally-perl 1.03-1 > ii libterm-readkey-perl 2.32-1+b1 > ii perl 5.20.2-6 > > needrestart recommends no packages. > > Versions of packages needrestart suggests: > ii libnotify-bin 0.7.6-2 > ii needrestart-session 0.3-2 > > -- Configuration Files: > /etc/needrestart/needrestart.conf changed: > $nrconf{blacklist} = [ > # ignore sudo (not a daemon) > q(^/usr/bin/sudo(\.dpkg-new)?$), > # ignore DHCP clients > q(^/sbin/(dhclient|dhcpcd5|pump|udhcpc)(\.dpkg-new)?$), > # ignore apt-get (Debian Bug#784237) > q(^/usr/bin/apt-get(\.dpkg-new)?$), > ]; > $nrconf{blacklist_rc} = [ > q(^avahi-daemon) , > q(^postfix) , > q(^rtkit-daemon) , > ]; > $nrconf{override_rc} = { > # DBus > q(^dbus) => 0, > # display managers > q(^gdm) => 0, > q(^kdm) => 0, > q(^nodm) => 0, > q(^wdm) => 0, > q(^xdm) => 0, > q(^lightdm) => 0, > # networking stuff > q(^network-manager) => 0, > q(^NetworkManager) => 0, > q(^wpa_supplicant) => 0, > q(^openvpn) => 0, > q(^quagga) => 0, > q(^tinc) => 0, > # gettys > q(^getty@.+\.service) => 0, > # misc > q(^zfs-fuse) => 0, > q(^mythtv-backend) => 0, > # workaround for broken systemd-journald > # (see also Debian Bug#771122 & #771254) > q(^systemd-journald) => 0, > # more systemd stuff > # (see also Debian Bug#784238 & #784437) > q(^emergency\.service$) => 0, > q(^rescue\.service$) => 0, > }; > if(-d q(/etc/needrestart/conf.d)) { > foreach my $fn (sort </etc/needrestart/conf.d/*.conf>) { > print STDERR "$LOGPREF eval $fn\n" if($nrconf{verbose}); > eval do { local(@ARGV, $/) = $fn; <>}; > die "Error parsing $fn: $@" if($@); > } > } > > /etc/needrestart/notify.d/600-mail changed: > exit 0 > MAILX='/usr/bin/mail' > test -x "$MAILX" || exit 1 > echo "[$0] notify user $NR_USERNAME on $NR_SESSION via mail" 1>&2 > { > echo "Your session on host $(hostname -f) ($NR_SESSION) is running > obsolete binaries or libraries as listed below." > echo > echo "Please consider to relogin or restart the affected processes!" > echo > cat > } | fold -s -w 72 | "$MAILX" -s "Relogin or restarts on host $(hostname) > required!" "$NR_USERNAME" > > > -- no debconf information > -- :: WWW: http://fiasko-nw.net/~thomas/ :: ::: Jabber: xmpp:tho...@jabber.fiasko-nw.net ::: :: flickr: http://www.flickr.com/photos/laugufe/ :: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org