Last active
November 21, 2016 19:20
-
-
Save mysticaltech/209a6b66b365ccba0eec4f7994ecb489 to your computer and use it in GitHub Desktop.
Make Universal Media Server (UMS) Headless on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I added this to /Library/LaunchAgents/, you need to give it the correct ownership and permission: | |
sudo chown root:wheel /Libary/LaunchAgents/com.universalmediaserver.ums.plist | |
sudo chmod 644 /Libary/LaunchAgents/com.universalmediaserver.ums.plist | |
Or add it directly to ~/Library/LaunchAgents/ in which case i guess setting ownership and permission might not be necessary. | |
Either way you can always debug with the excellent launchcontrol app, install it using: | |
brew cask install launchcontrol | |
I have configured log info to go to /tmp/ums* | |
If I'm not mistaken the default config for the headless UMS can be changed in ~/Library/Application Support/UMS/UMS.conf | |
I'm using Java 8 and macOS Sierra and everything works great. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.universalmediaserver.ums</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/java</string> | |
<string>-Djava.awt.headless=true</string> | |
<string>-jar</string> | |
<string>/Applications/Universal Media Server.app/Contents/Java/ums-6.5.1-jar-with-dependencies.jar</string> | |
<string>headless</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>StandardErrorPath</key> | |
<string>/tmp/ums-error.log</string> | |
<key>StandardOutPath</key> | |
<string>/tmp/ums.log</string> | |
<key>WorkingDirectory</key> | |
<string>/Applications/Universal Media Server.app/Contents/Resources</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment