both plex HT and server would be nice to start/restart from myplex web or iOS
Yea that be good too
both plex HT and server would be nice to start/restart from myplex web or iOS
Yea that be good too
Thanks for the votes people
+1
for those on windows interested in an alternative method for the time being. make a batch file using the below as a template
@echo offC:\Windows\System32 askkill.exe /IM “Plex Media Server.exe” /f
PING 1.1.1.1 -n 1 -w 2000 >NUL
START “Plex” “C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe”
EXIT
Then use some remote program like unified remote or something similar to run the batch file.
Kills the Media Server
Waits 2 seconds
Starts the Media Server
for those on windows interested in an alternative method for the time being. make a batch file using the below as a template
@echo offC:\Windows\System32 askkill.exe /IM “Plex Media Server.exe” /f
PING 1.1.1.1 -n 1 -w 2000 >NUL
START “Plex” “C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe”
EXIT
Then use some remote program like unified remote or something similar to run the batch file.
Kills the Media Server
Waits 2 seconds
Starts the Media Server
Nice Thanks.
I just wanted to update my script and purpose a solution if you create a file with the following
#!/bin/sh killall "Plex Media Center" sleep 10 open -a "Plex Media Center"
then you can create a php page with this (where path to script is the path to the script)
<?php
exec("/path/to/script.sh");
?>
then you can use mamp or if you are more technically inclined you can activate this yourself then put that php file where the web directory is and then all you need to do is point your browser at the same ip address that myplex gives you so for example http://192.168.1.1/nameofphpfile.php then boom you have restarted your plex media server.
Now I am sure that someone can take this further, maybe add some sort of authentication and maybe make it a button, but there is the guts of what you need, and by making it an independent system even if the media server becomes unresponsive it will still work.
A small note this script will only work on mac os x to run it on linux you would just need to change it to use pkill and the full path to launch it again, I am not sure if you would have to do some more magic on windows but I think the above script will work as long as php can run a batch file on windows.
I just wanted to update my script and purpose a solution if you create a file with the following
#!/bin/sh killall "Plex Media Center" sleep 10 open -a "Plex Media Center"then you can create a php page with this (where path to script is the path to the script)
<?php exec("/path/to/script.sh"); ?>then you can use mamp or if you are more technically inclined you can activate this yourself then put that php file where the web directory is and then all you need to do is point your browser at the same ip address that myplex gives you so for example http://192.168.1.1/nameofphpfile.php then boom you have restarted your plex media server.
Now I am sure that someone can take this further, maybe add some sort of authentication and maybe make it a button, but there is the guts of what you need, and by making it an independent system even if the media server becomes unresponsive it will still work.
A small note this script will only work on mac os x to run it on linux you would just need to change it to use pkill and the full path to launch it again, I am not sure if you would have to do some more magic on windows but I think the above script will work as long as php can run a batch file on windows.
Cool thanks
Thanks for the support people
EviL Vibes - What are you after here, votes or a useful feature? It appears that the request in essence is a no go, as many people have stated - that if Plex goes down then a client can't connect to reset, bit of a chicken egg thing that just won't work. However, if your goal is to somehow have the Plex server reset itself, then this is a feature that would be good. The simple answer is stated above for windows users, just create the batch file and get task scheduler to run it every day. probably not an elegant solution for programmers, as why does the program need resetting anyway?
Anyhoo EviL Vibes, can you maybe clarify what you are after here having had so many replies?
Keep supporting people maybe we will get this.
I have read through most of the posts on this thread now tat it has surfaced to the top again .. As someone who is always worried about security would granting myPlex that type of functionality introduce a new potential vulnerability risk ? I currently use the free version of LogmeIn to remotely check my computers and restart them or whatever.
I have read through most of the posts on this thread now tat it has surfaced to the top again .. As someone who is always worried about security would granting myPlex that type of functionality introduce a new potential vulnerability risk ? I currently use the free version of LogmeIn to remotely chek my computers and restart them or whatever.
Shouldn't be any risks.
EviL ViBes, you seem to be completely uninterested in a number of issues with the request. Restarting through the UI only works if the server is responsive. The most common (by far) reason to need a restart is if the server becomes unresponsive.
There are great ways to detect the server is not responsive and restart it if you are on one of the Linux or Mac builds. None of these involve clicking a button in the client. Perhaps instead of suggesting this feature every week, you should investigate a platform that more closely matches your use of the product. Even on my unRaid installation, the uptime for PMS is weeks at a time. Normally the only reason I ever stop it is to apply a new version or to do physical system maintenance.
In short, if you are having to restart Plex constantly, there is something likely wrong with your installation or very unusual about your usage.
EviL ViBes, you seem to be completely uninterested in a number of issues with the request. Restarting through the UI only works if the server is responsive. The most common (by far) reason to need a restart is if the server becomes unresponsive.
There are great ways to detect the server is not responsive and restart it if you are on one of the Linux or Mac builds. None of these involve clicking a button in the client. Perhaps instead of suggesting this feature every week, you should investigate a platform that more closely matches your use of the product. Even on my unRaid installation, the uptime for PMS is weeks at a time. Normally the only reason I ever stop it is to apply a new version or to do physical system maintenance.
In short, if you are having to restart Plex constantly, there is something likely wrong with your installation or very unusual about your usage.
I believe agregjones is right. The only times I needed to restart the PMS machine (and mine is windows 7 64 bit) was in the days when PMS was crashing and restarting PMS did not work and needed clean reboot. Now for these cases Plex/Web will not be working and would need to resort to logmein to restart the computer remotely.
I would actually prefer to have development effort put into technologies that allow the PMS computer to sleep and clients to instigate a wake up. I use logmein which does switch on sleeping PCs - but it does that by using a cooperating logmein client on a PC that does not sleep on the same Lan.
Giving the privilege to Plex to restart the computer actually goes against the principles of my Plex implementation as I have Plex deliberately set up to run in a non-admin account !
I’m all for PMS to detect when it crashes, and to restart itself.
Also there are times when I try to connect out of my house, but I can’t connect, even though the port is free and green in the settings. And sometimes friends can’t connect, and a restart fixes it. I wish Plex could run background tests to see if it’s connectable, and restart itself if it isn’t.
I'm all for PMS to detect when it crashes, and to restart itself.
Difficult, IMHO....
Let's say that 5 people are streaming, and one thread crash....Then what? Restart all, and make the last 4 users unhappy?
The way I see it, this is more or less a hopeless req., and could only be solved by a seperate app, like the by me just invented fantasy app named "Plex Monitor App", that would run side by side with Plex, and check for port 32400....
But when that's said...what if Plex keeps running, but transcoder is stuck etc....
As such, this req has a big thumbs down from me
/T
Spend development time ensuring PMS will not crash, or add better tools for telling my why it crashed ... but don't invite bad karma building tools that anticipate a crash ...
Big thumbs down?Difficult, IMHO....
Let's say that 5 people are streaming, and one thread crash....Then what? Restart all, and make the last 4 users unhappy?
The way I see it, this is more or less a hopeless req., and could only be solved by a seperate app, like the by me just invented fantasy app named "Plex Monitor App", that would run side by side with Plex, and check for port 32400....
But when that's said...what if Plex keeps running, but transcoder is stuck etc....
As such, this req has a big thumbs down from me
/T
[/spoiler]+1
"I wish Plex could run background tests to see if it's connectable, and restart itself if it isn't."
Thats a great idea too.
"Also there are times when I try to connect out of my house, but I can't connect, even though the port is free and green in the settings. And sometimes friends can't connect, and a restart fixes it."
Same here.