Skip to content

Instantly share code, notes, and snippets.

View Kalroth's full-sized avatar

Martin Danielsen Kalroth

View GitHub Profile
@Kalroth
Kalroth / script.sh
Last active April 7, 2018 17:40
unRAID Plex Media Server check
#!/bin/bash
#name=Plex Media Server check and restart
#description=This script will restart PLEX if it does not respond after two attempts.
#arrayStarted=true
dockerid=$(docker ps -aqf "name=Plex")
if [ "$dockerid" == "" ]; then
echo "ERR $(date -Is) - Could not get a docker id for docker name \"Plex\"."
exit 1;
fi