Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit 34ea3ff

Browse files
Add example OSX user agent service (#86)
* feat: add osx launchd agent example * fix: spelling * chore: Update README.md * Update ra-mux.plist to include all cargo and rust-analyzer likely installations paths Co-authored-by: Jihyeon Kim (김지현) <simnalamburt@gmail.com> * Update ra-mux.plist to start automatically Co-authored-by: Jihyeon Kim (김지현) <simnalamburt@gmail.com> * Update README.md to clarify that ra-mux can run as a user service --------- Co-authored-by: Jihyeon Kim (김지현) <simnalamburt@gmail.com>
1 parent 3e3bf04 commit 34ea3ff

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ Options:
5656
-V, --version Print version
5757
```
5858

59-
`ra-multiplex server` can run as a systemd user service, see the example `ra-mux.service`.
59+
`ra-multiplex server` can run as a user service:
60+
* On `systemd` available systems see the example `ra-mux.service`.
61+
* On `OSX Launchd` systems see the example `ra-mux.plist`
6062

6163
Configure your editor to use `ra-multiplex` as `rust-analyzer`, for example for
6264
CoC in neovim edit `~/.config/nvim/coc-settings.json`, add:

ra-mux.plist

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>Label</key>
6+
<string>com.github.ra-multiplex</string>
7+
<key>ProgramArguments</key>
8+
<array>
9+
<string>[PATH_TO_BIN]</string>
10+
<string>server</string>
11+
</array>
12+
<key>EnvironmentVariables</key>
13+
<dict>
14+
<key>PATH</key>
15+
<string>/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:[HOME]/.cargo/bin</string>
16+
</dict>
17+
<key>StandardOutPath</key>
18+
<string>/tmp/ra-multiplex.log</string>
19+
<key>StandardErrorPath</key>
20+
<string>/tmp/ra-multiplex.log</string>
21+
<key>KeepAlive</key>
22+
<true />
23+
<key>RunAtLoad</key>
24+
<true/>
25+
<key>LimitLoadToSessionType</key>
26+
<array>
27+
<string>Aqua</string>
28+
<string>Background</string>
29+
<string>LoginWindow</string>
30+
<string>StandardIO</string>
31+
<string>System</string>
32+
</array>
33+
<key>UserName</key>
34+
<string>[USERNAME]</string>
35+
</dict>
36+
</plist>
37+

0 commit comments

Comments
 (0)