diff --git a/README b/README index fd6a7f64..33d3a3e8 100644 --- a/README +++ b/README @@ -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. \ No newline at end of file +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 \ No newline at end of file diff --git a/org.mafipulation.shairport.plist b/org.mafipulation.shairport.plist new file mode 100644 index 00000000..26b5fbe3 --- /dev/null +++ b/org.mafipulation.shairport.plist @@ -0,0 +1,14 @@ + + + + + Label + org.mafipulation.shairport + RunAtLoad + + ProgramArguments + + /usr/local/bin/shairport.pl + + +