ChrisJ60 7 Posted May 27, 2018 Share 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. Link to comment Share on other sites More sharing options...
vangeliis 8 Posted May 27, 2018 Share Posted May 27, 2018 (assuming you have copied EmbyServer.app into your Applications folder) : /Applications/EmbyServer.app/Contents/MacOS/EmbyServer Link to comment Share on other sites More sharing options...
ChrisJ60 7 Posted May 27, 2018 Author Share 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. Link to comment Share on other sites More sharing options...
Luke 35304 Posted July 21, 2018 Share Posted July 21, 2018 You could send an http request to /system/shutdown Link to comment Share on other sites More sharing options...
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