From ece70481a750b44fdff793390ecc8caa4dbeceba Mon Sep 17 00:00:00 2001 From: Rakuraku Jyo Date: Tue, 12 Apr 2011 10:52:01 +0900 Subject: [PATCH] add a config for mac's LaunchAgents with instructions in README --- README | 10 +++++++++- org.mafipulation.shairport.plist | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 org.mafipulation.shairport.plist 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 + + +