Jump to content

Restart emby server via browser


Pockenfresse
Go to solution Solved by Luke,

Recommended Posts

Pockenfresse

Hello all,
I am using the portable version for Windows x64 in the current stable version 4.7.8.0. I run the emby server as a Windows service, as it is described here .
This works very well. What I am missing is the possibility to restart the server via web interface.

firefox_K6fTWb4fEO.png.ce0946577bc8821dbc05d740a44419b2.png

There is only the entry for shutting down the server.
yks8dePDno.png.2c91f9b34e4e503b24a85f5006b7e3d1.png

I already tried to install the service without NSSM (Powershell New-Service, cmd sc.exe create) but unfortunately these services did not start at all.

Does anyone have an idea about this problem?

Olf

embyserver.txt hardware_detection-63801269408.txt

Link to comment
Share on other sites

  • Solution

Hi, that's correct. The built in restart is not supported right now when running as a windows service.

Link to comment
Share on other sites

Its one of those things that would be nice although I can't say when it will make it to the top of the priority list.

Link to comment
Share on other sites

rbjtech

Just set the service to restart on shutdown (in the service/nssm config)

Then when you shutdown via the web app - it actually just restarts it.

To shut it down properly - you need to actually stop the service via services.msc 

 

Link to comment
Share on other sites

Happy2Play

Or create a bat file to restart Emby with the API call

curl -X POST "http://localhost:8096/emby/System/Restart?api_key={YOURAPIKEY}" -d ""

 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
Pockenfresse
On 10/14/2022 at 11:42 PM, Happy2Play said:

Or create a bat file to restart Emby with the API call

curl -X POST "http://localhost:8096/emby/System/Restart?api_key={YOURAPIKEY}" -d ""

 

Unfortunately, this does not work for me. I get the message:

The server is unable to self-restart. Please restart manually.

 

Link to comment
Share on other sites

rbjtech
13 minutes ago, Pockenfresse said:

Unfortunately, this does not work for me. I get the message:

The server is unable to self-restart. Please restart manually.

 

If you are running as a service - then yes, you cannot restart via the API, maybe try shutdown instead - and if your service is configured to restart, then it will do so - the same as if you shutdown the service in a browser (it will restart).

ie

curl -X POST "http://localhost:8096/emby/System/Shutdown?api_key={YOURAPIKEY}" -d ""
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...