-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.pai-mobile.plist.example
More file actions
54 lines (44 loc) · 1.43 KB
/
com.pai-mobile.plist.example
File metadata and controls
54 lines (44 loc) · 1.43 KB
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
<!-- PAI Mobile Gateway — launchd auto-start config
To use:
1. Copy this file: cp com.pai-mobile.plist.example ~/Library/LaunchAgents/com.pai-mobile.plist
2. Replace __HOME__ with your home directory (e.g., /Users/yourname)
3. Replace __PROJECT_DIR__ with the full path to this project
4. Load: launchctl load ~/Library/LaunchAgents/com.pai-mobile.plist
-->
<?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>com.pai-mobile</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/node</string>
<string>__PROJECT_DIR__/dist/index.js</string>
</array>
<key>WorkingDirectory</key>
<string>__PROJECT_DIR__</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<key>HOME</key>
<string>__HOME__</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>StandardOutPath</key>
<string>__PROJECT_DIR__/data/logs/launchd-stdout.log</string>
<key>StandardErrorPath</key>
<string>__PROJECT_DIR__/data/logs/launchd-stderr.log</string>
<key>ThrottleInterval</key>
<integer>10</integer>
<key>ProcessType</key>
<string>Background</string>
</dict>
</plist>