Jump to content

How to stop and start Emby Server from command line / script?


ChrisJ60
 Share

Recommended Posts

I run EmbyServer on macOS. In order to support various automation tasks I need to be able to stop and start the EmbyServer from the command line (i.e. from a shell script). I tried this:

 

osascript -e 'tell application "EmbyServer"' -e 'quit' -e 'end tell'

 

but it doesn't have any effect so clearly something more sophisticated is needed.

 

Can someone please advise what command(s) I need to issue to stop / start the server from a script.

 

Thanks.

Link to comment
Share on other sites

(assuming you have copied EmbyServer.app into your Applications folder) :

 

/Applications/EmbyServer.app/Contents/MacOS/EmbyServer

Link to comment
Share on other sites

(assuming you have copied EmbyServer.app into your Applications folder) :

 

/Applications/EmbyServer.app/Contents/MacOS/EmbyServer

 

Yeah, that will start it but not in the same way as double clicking the app does. A better option is 'open -a EmbyServer'. Starting it is not the main problem, stopping it cleanly and safely from the command line seems to be the challenge.

Link to comment
Share on other sites

  • 1 month later...

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
 Share

×
×
  • Create New...