Recently due to a vulnerability detected in java, new version of packages (Ubuntu 22.04) were installed via the unattended upgrades procedure:
Start-Date: 2024-11-12 06:15:15
Commandline: /usr/bin/unattended-upgrade
Upgrade: openjdk-17-jre:amd64 (17.0.12+7-1ubuntu2~22.04, 17.0.13+11-2ubuntu1~22.04), openjdk-17-jre-headless:amd64 (17.0.12+7-1ubuntu2~22.04, 17.0.13+11-2ubuntu1~22.04)
End-Date: 2024-11-12 06:15:18
more info: https://ubuntu.com/security/notices/USN-7098-1
The update appear not to cause any problems, the java processes continued to work but only superficially. Code logic that called external processes started failing with:
java.io.IOException error=0, Failed to exec spawn helper: pid: 2187894, exit value: 1.
To resolve the problem a restart of the java process was needed.
My questions would be:
Is it possible to force restarting of services (systemd) that were installed via debian packages and had java as dependency? e.g. tomcat9
Would package pinning hold back unattended-upgrades from updating that package?