LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   A stop job is running for Plex (https://www.linuxquestions.org/questions/linux-general-1/a-stop-job-is-running-for-plex-4175553076/)

Luca91 09-09-2015 06:03 PM

A stop job is running for Plex
 
Hello,
I'm using a Debian 8.2 Jessie as a Media Server using PLEX Media Server.
Everything is working perfectly, except when I shutdown my computer.. I get a message like:
"A stop job is running for Plex" and I've to wait 1m30s for the shutdown..
I know that this is not a big problem, but I'd like to fix this if possible..


Thanks a lot!

Timothy Miller 09-09-2015 06:26 PM

I keep meaning to research this too. Very minor, but irritating if I'm in a hurry and need to take my laptop with me.

ecruz1986 08-27-2021 10:31 PM

Old thread, but the bug still persists to this day, this is the first result on Google, and I found a workaround, so it is my obligation to answer.

There's a process called "Plex Tuner Service" that is started by Plex. That process is the culprit: it has some bug and takes too long to terminate itself. Plex Tuner Service is only needed for those using Plex with a DVR Tuner. Most users don't need it and can safely disable it like this:
sudo systemctl stop plexmediaserver.service
#ZzZzZ... it takes a long time to stop because of the bug
sudo mv '/usr/lib/plexmediaserver/Plex Tuner Service' '/usr/lib/plexmediaserver/Plex Tuner Service.DISABLED'
sudo systemctl start plexmediaserver.service
#wow, it started normally despite my aggressive hack! Let's see if it stops quickly now:
sudo systemctl stop plexmediaserver.service
#yeah, now it stops instantly!
sudo systemctl start plexmediaserver.service
#lets keep it running and be happy


All times are GMT -5. The time now is 04:32 AM.