- Platform information:
- Hardware: Intel 64Bit CPU/32GB RAM/100GB SSD
- OS: Ubuntu 22.04.3 LTS
- Java Runtime Environment: openjdk version “17.0.8” 2023-07-18 LTS
- openHAB version: 4.0.2
- Issue of the topic:
I encountered an annoying behaviour on my system, maybe someone can help me get rid of it:
On my server I use the packages provided on jfrog.io. On Ubuntu every time you update any packages with “apt update && apt upgrade” it then calls “needsrestart” to suggest services that need to be restarted due to updated shared libraries etc. Regardless of what packages are updated on my system, “needrestart” always suggests restarting openhab.service. Today i took some time to check this out and ran “needsrestart -v” after installing an AMD64 microcode update package. In the output i saw this line:
[main] #1075 uses deleted /var/lib/openhab/tmp/jffi17332769348779005318.so
It looks like this is the reason why a restart of the openhab.service is suggested.
As far a i can see I could change the “needsrestart” configuration to ignore those files, but maybe it is an error in the openhab code which leads to keeping this deleted file open. In this case, this should be examined by a developer and I would file an issue on Github.
Any ideas on this how to handle this “the right way” or what’s the cause of this?