-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurfboard.plist
74 lines (72 loc) · 1.88 KB
/
surfboard.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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>local.surfboard</string>
<key>UserName</key>
<string>$USER</string>
<key>EnvironmentVariables</key>
<dict>
<!-- add /sbin to PATH for /sbin/ping -->
<key>PATH</key>
<string>/usr/local/bin:/bin:/usr/bin:/sbin</string>
<!-- IP address of surfboard -->
<key>SURF_IP</key>
<string>$SURF_IP</string>
</dict>
<key>WorkingDirectory</key>
<string>$SURFDIR</string>
<key>StandardErrorPath</key>
<string>$SURFDIR/surfboard_plist_err.log</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>$SURFPATH/surfboard.py -p 2 -i 3 $SURF_IP 2> /tmp/surfboard_err.log | gzip -c >> surfboard.dat.gz; cat /tmp/surfboard_err.log >> surfboard_err.log</string>
</array>
<!-- Note: NetworkState with KeepAlive is no longer supported -->
<!-- Note: This runs when system wakes from sleep, so it doesn't
typically run right on the hour -->
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>0</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Hour</key>
<integer>4</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Hour</key>
<integer>8</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Hour</key>
<integer>12</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Hour</key>
<integer>16</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Hour</key>
<integer>20</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</array>
</dict>
</plist>