Is there a script similar to this Linux one for Windows? (I’m not finding one)
plex_restart.sh
#!/bin/bash
# If plex is not running, don't do anything.
plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l`
if [ "$plex_running" -eq 1 ]; then
exit 0
fi
# Test Plex web interface. If it's dead, this'll time out in a few seconds.
curl -I -m 8 "http://localhost:32400/library/sections" > /dev/null 2>&1
This file has been truncated. show original
Basically looking for a way to make sure Plex Server is running on my Windows machine and when it is not, have something to start it back up.
Thank you for taking the time to read my post!
I’ve used this before and it worked for me.
Server Version# 1.21.2.3943-a91458577
Player Version#:8.11.0.22186 (a1b8a7fb)
if you are suffering because every time you connect to your server with an android app, I am sorry but there is no fix yet.
I found a workaround that is working beautifully for me.
I installed the app RestartonCrash it is free, and it will restart the app when it crashes
this is a portable app, so install it in %AppData% and add it to the startup folder.
press the Windows logo key + R , type shell:startup , then…
1 Like
Awesome, thank you. I found the official blog for the application because the Major Geeks’ link wasn’t working for me:
I’ll report back if this works for me.
I don’t actually recall where I got the file but your choice looks fine with good documentation. That documentation actually looks familiar so I most likely used that to set mine up as well.
1 Like
Can say that the Restart On Crash v1.6.3.2 works great. Really saves me a lot of headache. Thank you @mspacek
1 Like
You’re welcome. Hopefully it can help others as well when needed like now…
1 Like
system
Closed
July 4, 2022, 4:02am
7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.