Starting from Ubuntu 24.04, needrestart in the default configuration will by
default not show the Debconf prompt, and restart automatically the affected
services. This includes when run as part of `unattended-upgrades` to ensure
that the security updates it brings are actually applied to running services
rather than leaving the system vulnerable.

For more details, see the following Discourse post:

https://discourse.ubuntu.com/t/needrestart-changes-in-ubuntu-24-04-service-restarts/44671
