UMS is not stopping
Posted: Tue Mar 07, 2023 8:55 am
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 (systemctl status -l ums)
This means turnning off my media server takes an extra 1m30s, which could be a problem during a blackout.
Anyone have an idea on why UMS doesn't stop when asked politely?
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 (systemctl status -l ums)
Code: Select all
� ums.service - Universal Media Server
Loaded: loaded (/etc/systemd/system/ums.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Mon 2023-03-06 15:42:03 EST; 7min ago
Process: 20999 ExecStop=/usr/bin/pkill --signal SIGINT -f java .*ums.jar.* (code=exited, status=0/SUCCESS)
Process: 20354 ExecStart=/opt/ums/startup.sh (code=killed, signal=KILL)
Main PID: 20354 (code=killed, signal=KILL)
Mar 06 15:39:39 henry.localdomain systemd[1]: Started Universal Media Server.
Mar 06 15:40:33 henry.localdomain systemd[1]: Stopping Universal Media Server...
Mar 06 15:42:03 henry.localdomain systemd[1]: ums.service: State 'stop-sigterm' timed out. Killing.
Mar 06 15:42:03 henry.localdomain systemd[1]: ums.service: Killing process 20354 (java) with signal SIGKILL.
Mar 06 15:42:03 henry.localdomain systemd[1]: ums.service: Main process exited, code=killed, status=9/KILL
Mar 06 15:42:03 henry.localdomain systemd[1]: ums.service: Failed with result 'timeout'.
Mar 06 15:42:03 henry.localdomain systemd[1]: Stopped Universal Media Server.
Anyone have an idea on why UMS doesn't stop when asked politely?