ChrisJ60 13 Posted May 27, 2018 Posted May 27, 2018 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.
vangeliis 8 Posted May 27, 2018 Posted May 27, 2018 (assuming you have copied EmbyServer.app into your Applications folder) : /Applications/EmbyServer.app/Contents/MacOS/EmbyServer
ChrisJ60 13 Posted May 27, 2018 Author Posted May 27, 2018 (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.
Luke 40064 Posted July 21, 2018 Posted July 21, 2018 You could send an http request to /system/shutdown
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now