Jump to content

Running EMBY as a service


Recommended Posts

Sgjumper82
Posted (edited)

Emby Users,

I have been searching for a way to enable Emby to run as a service, and today I found the answer.

It's actually very simple.

Command: Replace YourServiceName with the name of your service. (As seen below I named mine EMBY)
sc create "YourServiceName" binPath= "C:\Path\To\YourApp.exe"


PATH: Replace USERNAME with your username (If the default Installation folder was changed, you will need to locate the correct path)
C:\Users\USERNAME\AppData\Roaming\Emby-Server\system\EmbyServer.exe

CREATING THE SERVICE
Run Command prompt as administrator
Run these 2 commands in order.
1) sc create "Emby" binPath= "C:\Users\USERNAME\AppData\Roaming\Emby-Server\system\EmbyServer.exe"
2) sc config "Emby" start= auto


Restart your computer

DO NOT LOGIN

Wait a few minutes after the login prompt appears and test access from another device.

Edited by Sgjumper82
Update service
  • Like 1
Sgjumper82
Posted

@RanmaCanadaThank you for your reply, 

Unfortunately this is not the case.  

In the windows world, a service will run regardless of if a user is signed in.

An app listed for startup the other hand, is user specific and won’t run until the user signs in.

This article demonstrates installing and utilizing a 3rd party application to setup the service, whereas these 2 simple commands turn the Emby executable into a service utilizing inherent windows functions. Aka, No additional Application needed.

A good example would be, after initial installation, Emby runs under the specific user profile, let’s say User0. If User1 is watching a movie and windows decides to perform a forced update. Emby is no longer available upon system reboot, until User0 who performed the installation signs in and the application starts.

 To check this:

Run Startup apps on your system, and you will see that “EmbyServer” is listed. This is just for your user profile.

Now run services, and see if Emby is listed.

RanmaCanada
Posted (edited)
1 hour ago, Sgjumper82 said:

@RanmaCanadaThank you for your reply, 

Unfortunately this is not the case.  

In the windows world, a service will run regardless of if a user is signed in.

An app listed for startup the other hand, is user specific and won’t run until the user signs in.

This article demonstrates installing and utilizing a 3rd party application to setup the service, whereas these 2 simple commands turn the Emby executable into a service utilizing inherent windows functions. Aka, No additional Application needed.

A good example would be, after initial installation, Emby runs under the specific user profile, let’s say User0. If User1 is watching a movie and windows decides to perform a forced update. Emby is no longer available upon system reboot, until User0 who performed the installation signs in and the application starts.

 To check this:

Run Startup apps on your system, and you will see that “EmbyServer” is listed. This is just for your user profile.

Now run services, and see if Emby is listed.

I've had zero issues running Emby as a service, as well as thousands of other users. If you're having problems, then it's a you problem, not Emby. Anyone using Emby server on a non dedicated machine, is asking for a really bad time.

Edited by RanmaCanada
justinrh
Posted

Emby doesn't run as a service OOTB, thus the KB gives a 3rd-party solution.  I kinda do the same thing using the Windows 'restart apps' sign-in option, which works in most scenarios, and only the admin ever logs into the server box.

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...