File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,19 +71,14 @@ OPTIONS:
7171mkdir -p ~ /bin && cp onair.sh ~ /bin # makes a bin directory in your user's home folder, copies onair script to that folder
7272
7373# add your ip address and system username to the plist file
74- sed -i ' s/<REPLACE_IP_ADDRESS>/your-elgato-ip-address-here/g' com.keylight.task .plist
75- sed -i ' s/<REPLACE_USER>/your-username-here/g' com.keylight.task .plist
74+ sed -i ' s/<REPLACE_IP_ADDRESS>/your-elgato-ip-address-here/g' com.keylight.daemon .plist
75+ sed -i ' s/<REPLACE_USER>/your-username-here/g' com.keylight.daemon .plist
7676
7777# copy updated plist to launchdaemon folder
78- cp com.keylight.task.plist /Library/LaunchDaemons/com.keylight.task.plist
79-
80- # change permissions to plist file
81- sudo chown root:wheel /Library/LaunchDaemons/com.keylight.task.plist
78+ cp com.keylight.daemon.plist /Library/LaunchDaemons/com.keylight.daemon.plist
8279
8380# load/start daemon/plist
84- sudo launchctl unload -w /Library/LaunchDaemons/com.keylight.task.plist
85- sudo launchctl load -w /Library/LaunchDaemons/com.keylight.task.plist
86- sudo launchctl start -w /Library/LaunchDaemons/com.keylight.task.plist
81+ sudo launchctl load -w /Library/LaunchDaemons/com.keylight.daemon.plist
8782
8883# view logs
8984tail -f /tmp/keylight.stdout # standard out logs
Original file line number Diff line number Diff line change 1111 <key >number_of_lights </key >
1212 <string >1 </string >
1313 </dict >
14+ <key >GroupName </key >
15+ <string >wheel </string >
1416 <key >Label </key >
1517 <string >com.keylight </string >
16- <key >Program </key >
17- <string ></Users/<REPLACE_USER>/bin/onair.sh> </string >
18+ <key >ProgramArguments </key >
19+ <array >
20+ <string >sh </string >
21+ <string >-c </string >
22+ <string >/Users/<REPLACE_USER>/bin/onair.sh </string >
23+ </array >
1824 <key >RunAtLoad </key >
1925 <true />
20- <key >KeepAlive </key >
21- <false />
22- <key >LaunchOnlyOnce </key >
23- <true />
24- <key >StandardOutPath </key >
25- <string >/tmp/keylight.stdout </string >
2626 <key >StandardErrorPath </key >
2727 <string >/tmp/keylight.stderr </string >
28+ <key >StandardOutPath </key >
29+ <string >/tmp/keylight.stdout </string >
2830 <key >UserName </key >
29- <string >admin </string >
30- <key >GroupName </key >
31- <string >admin </string >
32- <key >InitGroups </key >
33- <true />
31+ <string >root </string >
3432 </dict >
3533</plist >
You can’t perform that action at this time.
0 commit comments