Search found 7 matches

by MetaRZA
Sun Mar 12, 2023 4:43 pm
Forum: Help and Support
Topic: UMS is not stopping
Replies: 12
Views: 2359

Re: UMS is not stopping

UMS is supposed to shutdown on SIGTERM or SIGINT without an issue. I hope to find out why it wasn't. I now suspect my DB was [edited].

What's more, your script is using SIGKILL, which is exactly what I was hoping to avoid.
by MetaRZA
Sun Mar 12, 2023 9:05 am
Forum: Help and Support
Topic: UMS is not stopping
Replies: 12
Views: 2359

More investigation

So waiting until the next day, UMS shutdown takes a lot longer. It turns out that LoggerFactory.getILoggerFactory().stop(); also closes stderr. So I reorganized net.pms.PMS.shutdown() to close logging last. I now see that most of the shutdown delay is in MediaDatabase.shutdown(). I also added Runtim...
by MetaRZA
Fri Mar 10, 2023 7:28 am
Forum: Help and Support
Topic: UMS is not stopping
Replies: 12
Views: 2359

Re: UMS is not stopping

boss wrote: Thu Mar 09, 2023 5:26 pm I prefer to modify UMS.sh to prevent UMS even checking for the UMS java version in the first place.
Fair enough.

I'm curious as to why you want to use the system Java and not the one shipped by UMS.
by MetaRZA
Thu Mar 09, 2023 3:16 pm
Forum: Help and Support
Topic: UMS is not stopping
Replies: 12
Views: 2359

Re: UMS is not stopping

boss wrote: Thu Mar 09, 2023 1:53 pm In UMS.sh change:
A better way to do this is to just move the jre17 directory out of the way :

Code: Select all

cd /dir/you/installed/ums/in
mv jre17 jre17-NOT
You can confirm which JRE is being used with lsof :

Code: Select all

lsof -c java | grep libjavajpeg
by MetaRZA
Thu Mar 09, 2023 3:13 pm
Forum: Help and Support
Topic: UMS is not stopping
Replies: 12
Views: 2359

Re: UMS is not stopping

UMS 13.2.0 compiled with JRE17.0.6+10 shuts down correctly. UMS 13.2.0 compiled with JRE17.0.5+8 shuts down correctly. I reinstalled UMS from UMS-13.2.0-x86_64.tgz and now it shuts down correctly. I tried precompiled UMS using a system java (bellsoft-java17) and it shuts down correctly. I tried prec...
by MetaRZA
Thu Mar 09, 2023 1:13 pm
Forum: Help and Support
Topic: UMS is not stopping
Replies: 12
Views: 2359

Re: UMS is not stopping

It occurred to me that I am the Programmer Born, so I grabbed the source code from git, recompiled and ran that. Using 13.2.1-SNAPSHOT, UMS shuts down correctly. The jre17 shipping with 13.2.0 (BellSoft 17.0.5, 2022-10-18) is different from the jre17 I compiled with (BellSoft 17.0.6, 2023-01-17). Ne...
by MetaRZA
Tue Mar 07, 2023 8:55 am
Forum: Help and Support
Topic: UMS is not stopping
Replies: 12
Views: 2359

UMS is not stopping

System: AlmaLinux 8 Version: UMS 13.2.0 Java: java-1.8.0-openjdk-1.8.0.362.b09-2.el8_7.x86_64 UMS is started via systemd (systemctl start ums) (see attachment). When I stop the service (systemctl stop ums) it will always hang for 1m30s and then use SIGKILL to kill the process. After which I see (sys...