@@ -9,42 +9,32 @@ Place at: `~/Library/LaunchAgents/com.embed-rerank.server.plist`
99
1010``` xml
1111<?xml version =" 1.0" encoding =" UTF-8" ?>
12- <!DOCTYPE plist PUBLIC "-//Apple Computer //DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
12+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
1313<plist version =" 1.0" >
1414<dict >
15- <key >Label</key >
16- <string >com.embed-rerank.server</string >
17-
18- <!-- server-run.sh activates .venv and loads .env -->
19- <key >ProgramArguments</key >
20- <array >
21- <string >/bin/bash</string >
22- <string >-lc</string >
23- <string >/Users/USERNAME/embed-rerank/tools/server-run.sh</string >
24- </array >
25-
26- <key >WorkingDirectory</key >
27- <string >/Users/USERNAME/embed-rerank</string >
28-
29- <!-- Auto-restart if the process exits -->
30- <key >KeepAlive</key >
31- <true />
32-
33- <key >RunAtLoad</key >
34- <true />
35-
36- <!-- Default values (can be overridden via .env) -->
37- <key >EnvironmentVariables</key >
38- <dict >
39- <key >HOST</key ><string >0.0.0.0</string >
40- <key >PORT</key ><string >11436</string >
41- <!-- Add more variables if needed -->
42- </dict >
43-
44- <key >StandardOutPath</key >
45- <string >/tmp/embed-rerank.log</string >
46- <key >StandardErrorPath</key >
47- <string >/tmp/embed-rerank.err</string >
15+ <key >Label</key >
16+ <string >com.embed-rerank.server</string >
17+ <key >ProgramArguments</key >
18+ <array >
19+ <string >/bin/sh</string >
20+ <string >/Users/username/embed-rerank/tools/server-launchd.sh</string >
21+ </array >
22+ <key >WorkingDirectory</key >
23+ <string >/Users/username/embed-rerank</string >
24+ <key >EnvironmentVariables</key >
25+ <dict >
26+ <key >HOST</key ><string >0.0.0.0</string >
27+ <key >PORT</key ><string >11436</string >
28+ <key >MODEL_NAME</key ><string >mlx-community/Qwen3-Embedding-4B-4bit-DWQ</string >
29+ </dict >
30+ <key >KeepAlive</key >
31+ <true />
32+ <key >RunAtLoad</key >
33+ <true />
34+ <key >StandardOutPath</key >
35+ <string >/tmp/embed-rerank.log</string >
36+ <key >StandardErrorPath</key >
37+ <string >/tmp/embed-rerank.err</string >
4838</dict >
4939</plist >
5040```
@@ -81,7 +71,4 @@ launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.embed-rerank.server.
8171## Notes
8272- Ensure the path contains no typos (spaces are fine because we invoke via bash -lc).
8373- ` .venv ` and ` .env ` must exist in the repo root.
84- - For system-wide usage, create a LaunchDaemon under ` /Library/LaunchDaemons/ ` (then adjust ownership/root requirements).
85- ```
86-
87- Similar code found with 1 license type
74+ - For system-wide usage, create a LaunchDaemon under ` /Library/LaunchDaemons/ ` (then adjust ownership/root requirements).
0 commit comments