User Tools

Site Tools


mac_launchd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mac_launchd [2012/01/01 07:41]
cerberus created
— (current)
Line 1: Line 1:
-This assumes that Serviio is installed under /Applications 
- 
-Save the following piece of code in a file named org.serviio.server.plist  
- 
-<code><?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>org.serviio.server</string> 
-   <key>ProgramArguments</key> 
-   <array> 
-      <string>/Applications/Serviio.app/Contents/MacOS/JavaApplicationStub</string> 
-   </array> 
-   <key>RunAtLoad</key> 
-   <true/> 
-</dict> 
-</plist></code> 
- 
-and copy the file to where it will be launched on system start 
- 
-<code># sudo cp org.serviio.server.plist /Library/LaunchDaemons/</code> 
- 
- 
-and to start it right away 
- 
-<code># sudo launchctl load /Library/LaunchDaemons/org.serviio.server.plist</code> 
- 
- 
-and to stop it 
- 
-<code># sudo launchctl unload /Library/LaunchDaemons/org.serviio.server.plist</code> 
- 
-Media library update fails unless you are logged in with the GUI due to the java image library tries to connect to a window server. By adding the following property to the Info.plist found in Serviio.app/Contents the java image library works without connecting to a window server. 
- 
-<code>                       <key>java.awt.headless</key> 
-                       <string>true</string></code> 
- 
  
mac_launchd.1325403713.txt.gz ยท Last modified: 2012/01/01 07:41 by cerberus