Plex Tuner Service is not stopping, preventing shut down of Plex service
When I try to stop the plex service, it (rc.d) hangs indefinitely waiting for Plex Tuner Service to close. PTS is unresponsive to kill, and I have to kill -9 it to shut it down.
I'm running plexmediaserver-22.214.171.12416 on FreeBSD-10.3-p19. I'm seeing the same behaviour on all 4 of my servers so hopefully this is easy to reproduce, but if not let me know and I'll try out different combinations!
By the way, I've been seeing it for a few versions of Plex now. I think it's been happening ever since Plex Tuner Service was introduced, but I'm not certain.
Steps to reproduce
When plex is started, run:
sudo service plexmediaserver stop
Check there are no plex processes left running, e.g.
ps aux | grep -i plex
Plex shuts down and no plex processes are running.
The service command hangs indefinitely waiting for plex processes to shut down:
$ sudo service plexmediaserver stop Stopping plexmediaserver. Waiting for PIDS: 5892. Cleaning up leftover child processes. Waiting for PIDS: 5918 5917 5916 5896
If I kill it and check for processes, I see the Plex Tuner Service:
$ ps aux | grep -i plex | less plex 5917 0.0 0.1 90552 6560 - I Sun12AM 0:06.31 /usr/local/share/plexmediaserver/Plex Tuner Service /usr/local/share/plexmediaserver/Resources/Tuner/Private /usr/local/share/plexmediaserver/Resources/Tuner/Shared 126.96.36.19916-25d94bad9 32600 /waitmutex
sudo kill 5917 doesn't help, it goes away with
sudo kill -9 5917