jaymoulin/docker-plex

Handle signals

Closed this issue · 2 comments

Just a tiny description (might be helpful for others)

If after the each restart you're getting the message in logs:
Plex Media Server is already running. Will not start...

Stop the container and manually delete the following file:
/Library/Application Support/Plex Media Server/plexmediaserver.pid
In the plex library folder which you have previously mounted to the /root folder in a container.

In my case it was: -v /mnt/nas/plex-library:/root

You're right! I'm also aware of your problem but that's not the purpose of this issue. As the link in the description explain, the problem remains in the docker container stop process which force kill Plex instead of a graceful exit.

By fixing this, you should not be able to reproduce the PID file behavior