add a config for mac's LaunchAgents with instructions in README
This commit is contained in:
@@ -64,4 +64,12 @@ How to compile and install on Mac OSX 10.6
|
||||
* perl shairport.pl
|
||||
|
||||
OSX 10.5 only bundles perl 5.8, which won't work with shairport. After getting a update
|
||||
here (http://www.perl.org/get.html), it worked.
|
||||
here (http://www.perl.org/get.html), it worked.
|
||||
|
||||
How to run as a daemon on Mac
|
||||
------
|
||||
* cp hairtunes shairport.pl /usr/local/bin
|
||||
* vi /usr/loca/bin/shairport.pl, change the path of hairtunes from ./hairtunes to /usr/loca/bin/hairtunes
|
||||
* cp org.mafipulation.shairport.plist ~/Library/LaunchAgents/
|
||||
* launchctl load org.mafipulation.shairport
|
||||
* launchctl start org.mafipulation.shairport
|
||||
@@ -0,0 +1,14 @@
|
||||
<?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.mafipulation.shairport</string>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/bin/shairport.pl</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user