Apt-get update / apt-get upgrade causes OH restart

I’m on OH 4.3.1 on Ubuntu 24.04.1 LTS. Recently I’ve found that every time I do an apt-get update followed by apt-get upgrade, OH restarts. I don’t believe this used to happen, but I’m unsure if it is because of my recent Ubuntu upgrade or because of OH itself. Is this normal now? Example below. Should the upgrade of the packages below trigger a restart of OH? What exactly does trigger an OH restart?

The following packages will be upgraded:
  bind9-dnsutils bind9-host bind9-libs dnsutils
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,460 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 bind9-host amd64 1:9.18.30-0ubuntu0.24.04.1 [50.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 bind9-dnsutils amd64 1:9.18.30-0ubuntu0.24.04.1 [155 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 bind9-libs amd64 1:9.18.30-0ubuntu0.24.04.1 [1,251 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 dnsutils all 1:9.18.30-0ubuntu0.24.04.1 [3,676 B]
Fetched 1,460 kB in 2s (760 kB/s)
(Reading database ... 171985 files and directories currently installed.)
Preparing to unpack .../bind9-host_1%3a9.18.30-0ubuntu0.24.04.1_amd64.deb ...
Unpacking bind9-host (1:9.18.30-0ubuntu0.24.04.1) over (1:9.18.28-0ubuntu0.24.04.1) ...
Preparing to unpack .../bind9-dnsutils_1%3a9.18.30-0ubuntu0.24.04.1_amd64.deb ...
Unpacking bind9-dnsutils (1:9.18.30-0ubuntu0.24.04.1) over (1:9.18.28-0ubuntu0.24.04.1) ...
Preparing to unpack .../bind9-libs_1%3a9.18.30-0ubuntu0.24.04.1_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.18.30-0ubuntu0.24.04.1) over (1:9.18.28-0ubuntu0.24.04.1) ...
Preparing to unpack .../dnsutils_1%3a9.18.30-0ubuntu0.24.04.1_all.deb ...
Unpacking dnsutils (1:9.18.30-0ubuntu0.24.04.1) over (1:9.18.28-0ubuntu0.24.04.1) ...
Setting up bind9-libs:amd64 (1:9.18.30-0ubuntu0.24.04.1) ...
Setting up bind9-host (1:9.18.30-0ubuntu0.24.04.1) ...
Setting up bind9-dnsutils (1:9.18.30-0ubuntu0.24.04.1) ...
Setting up dnsutils (1:9.18.30-0ubuntu0.24.04.1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

Restarting services...
 systemctl restart openhab.service

Have a look at

1 Like

Thanks for that link. I did upgrade through several Ubuntu releases recently, so perhaps more has changed since what is described in the link. I suppose I should be happy that they are taking security very seriously and the OH restarts are a consequence of that, but I initially found it a bit disconcerting.