Zachary Kotlarek 14 жил өмнө
parent
commit
39f25529e7
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      pms/PMSCheck.sh

+ 2 - 1
pms/PMSCheck.sh

@@ -35,9 +35,10 @@ while [ $LOOP -ne 0 ]; do
 	# If Plex has failed kill it
 	# If Plex has failed kill it
 	if [ -n "${FAILED}" ]; then
 	if [ -n "${FAILED}" ]; then
 		ERR_MSG="PMS is non-responsive (${FAILED}). Killing..."
 		ERR_MSG="PMS is non-responsive (${FAILED}). Killing..."
+		echo "${ERR_MSG}" 1>&2
+
 		killall 'Plex Media Server'
 		killall 'Plex Media Server'
 		if [ $LOOP -lt 1 ]; then
 		if [ $LOOP -lt 1 ]; then
-			echo "${ERR_MSG}" 1>&2
 			exit 1
 			exit 1
 		elif [ -n "${ADMIN_EMAIL}" ]; then
 		elif [ -n "${ADMIN_EMAIL}" ]; then
 			echo "${ERR_MSG}" | sendmail "${ADMIN_EMAIL}"
 			echo "${ERR_MSG}" | sendmail "${ADMIN_EMAIL}"