[daap] DAAPD autostart using launchd in Mac OS 10.4

DAAPD autostart using launchd in Mac OS 10.4 - a2z, June 20, 2005

The launchd system-wide and per-user agent/daemon-manager in Mac OS 10.4 can be set up so DAAPD (or any application) starts when the computer is turned on, when you log in, at certain times, etc.

To use launchd, one creates a .plist (preference list) or configuration file and loads it using Mac OS X's launchctl application or by simply placing it in System/Library/Launchagents, etc. - see launchd. The .plist file specifies the application (such as DAAPD) to run along specified parameters. It can be unloaded as well using launchctl or by removing it from the Launchagents, etc., folder.

1. Create a plist file using values suggested below. Use the launchd editor application or Mac OS X's Property List Editor. Or copy and paste the following in Text Edit application.

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>

<key>Label</key> <string>com.deleet.daapd</string>

<key>LowPriorityIO</key> <true/>

<key>Program</key> <string>/Applications/Sound/daapd/daapd</string>

<key>ProgramArguments</key> <array><string>/Applications/Sound/daapd/daapd</string></array>

<key>RunAtLoad</key> <true/>

<key>ServiceDescription</key> <string>DAAP server</string>

</dict></plist>

2. Save file as com.deleet.daapd.plist and put it in /System/Library/Launchdaemons/. Restart computer.

3. DAAPD will now be started at startup.

Note - As of this moment, I am not able to get it set to run 'on demand' and not 'on startup.'


EditText of this page (last edited 23. June (21:31:32)) [info] [diff])
FindPage by browsing or searching
5 best incoming links: DAAPD 0.2.4 installation on Mac OS 10.4 (7), RecentChanges (4), FrontPage (2),
5 best outgoing links:
5 most popular nearby: FrontPage (110786), RecentChanges (12044), DAAPD 0.2.4 installation on Mac OS 10.4 (5532),