liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
423 stars 67 forks source link

Documentation: document how to blacklist additional services without overriding main config file #124

Open martin21 opened 6 years ago

martin21 commented 6 years ago

I figured it out myself meanwhile by reading enough of chapter 9.4 Hash of Hashes in Programming Perl book, but for those who do not program in Perl it would be helpful to be able to read in the documentation how they can do that. I think it is quite a common configuration change.

Example that works for me:

 […]/etc/needrestart/conf.d# cat mysql.conf 
$nrconf{override_rc}{qr(^mysql)} = 0;
zerwes commented 5 years ago

Experimental push on scalar is now forbidden at ... => this breaks the idea of extending the main config w/ something like push($nrconf{blacklist}, qr(^/opt/.*/java$));

no no, perl is not my friend, it is my enemy :-/ Using some config syntax with a real overlay and a more human syntax (yaml, ini, ...) would help humans ...

LuHee commented 4 years ago

This works for me: push @{ $nrconf{blacklist} }, qr(^/usr/bin/conmon$);

martin21 commented 4 years ago

Thank your for the hint.