Monitor + Autorestart Plex Media Server Service Failure

Linux systems make excellent media servers. Since Plex Media Server has been unofficially available on the Raspberry Pi 2, Banana Pi and other ARMv7 devices, some users have wanted to monitor the service and restart it automatically.

Monit is the perfect service for that as it has advanced probing for system services. At the basic level it monitors for the existence of process id files which daemons user to show a process is running. Monit does also let you probe ports and urls giving additional layers of stability checking. For example, the Plex Media Server pid could exist but the Plex service is frozen. By probing the port and URL we can restart Plex on the Raspberry Pi 2 if the Plex web interface is unavailable.

This monitor plex media service failure and restart automatically tutorial was tested on Ubuntu and Debian systems and is based on the official documentation. This guide will work on Plex for x64 and x86 systems too. Make sure you have Monit installed.

If you are trying to figure out which hardware would work best for you, consider reading the Pi benchmarks.

Archives

Archives

DISCLAIMER

The information on HTPC Guides is for educational purposes and only condones obtaining public domain content. HTPC Guides is not responsible for content from any other site or provider. By using the links provided on this site you agree that neither this site nor its proprietor is in any way responsible for any damages or liability arising from use of external content.

Copyright

The information on this site is the intellectual property of the owner. Credit to other sources is provided where relevant. If you believe any information has not been sourced, please leave a comment and appropriate action will be taken.