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
75
76
77
78
79
80
<!--
mse serve LaunchAgent template.
DO NOT install this file directly. Use the installer script:
scripts/launchd/install.sh
It expands the placeholders below to concrete absolute paths and drops
the result at ~/Library/LaunchAgents/com.mse.server.plist.
Placeholders:
{{HOME}} -> $HOME (e.g. /Users/alice)
{{CARGO_BIN}} -> cargo install target dir (default: $HOME/.cargo/bin)
{{PROJECT_ROOT}} -> this repository's absolute path (WorkingDirectory)
Manual expand + install (if you don't want the script):
sed -e "s|{{HOME}}|$HOME|g" \
-e "s|{{CARGO_BIN}}|$HOME/.cargo/bin|g" \
-e "s|{{PROJECT_ROOT}}|$(pwd)|g" \
scripts/launchd/com.mse.server.plist.template \
> ~/Library/LaunchAgents/com.mse.server.plist
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.mse.server.plist
uninstall:
launchctl bootout gui/$(id -u)/com.mse.server
rm ~/Library/LaunchAgents/com.mse.server.plist
config:
Mutable settings (bind / enable_enhance_flow / git_store_path / ...) live
in ~/.mse/config.toml, not in ProgramArguments. Change = edit the file +
`launchctl kickstart -k gui/$(id -u)/com.mse.server` (this plist stays
fixed). See the mlua-swarm-server config module doc for details.
Notes:
- binary path / config path / WorkingDirectory must be absolute
(launchd does not resolve relative paths or tildes).
- EnvironmentVariables.PATH may need tweaking for your environment.
-->
Label
com.mse.server
ProgramArguments
{{CARGO_BIN}}/mse
serve
--config
{{HOME}}/.mse/config.toml
EnvironmentVariables
PATH
/usr/local/bin:/usr/bin:/bin:/opt/homebrew/bin
WorkingDirectory
{{PROJECT_ROOT}}
RunAtLoad
KeepAlive
SuccessfulExit
Crashed
StandardOutPath
/tmp/mse-server.stdout
StandardErrorPath
/tmp/mse-server.stderr
ThrottleInterval
10