Script to stop plex if media files become inaccessible?

Server Version#: 1.29.1.6276
Player Version#: 4.92.0

All of my media files are on a google drive accessed via rclone/mergerfs. Sometimes my gdrive mount drops, which makes plex think the files are inaccessible (true).

However, when the mount is restored, I have to restart Plex to make it realise that they are available again.

Is there any way of writing a bash script or something similar that responds to Plex seeing more than xx files as unavailable, which will stop my Unraid plex docker? I have an script already that will resume Plex if access is restored (checks if the mount is available), but I need one that is triggered by Plex having access problems.

Thanks in advance for any help.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.