aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorsalmon <salmonik@tuta.io>2026-08-09 23:28:12 +0200
committersalmon <salmonik@tuta.io>2026-08-09 23:28:12 +0200
commitda4147a8ca2ed92556eb56061a63e0cccb1984ce (patch)
treef6135a996a5dc53bdbf1a0166fb7234f37baa1c5 /README.md
parentDocument FreeBSD requirements in README (diff)
downloadrsplayer-da4147a8ca2ed92556eb56061a63e0cccb1984ce.tar.gz
rsplayer-da4147a8ca2ed92556eb56061a63e0cccb1984ce.zip
Add FreeBSD rc.d service, install completions only for installed shells
Diffstat (limited to '')
-rw-r--r--README.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/README.md b/README.md
index 9cc85fb..ef8ebaf 100644
--- a/README.md
+++ b/README.md
@@ -31,9 +31,19 @@ cargo build --release
31install -m 755 target/release/rsp /usr/local/bin/rsp 31install -m 755 target/release/rsp /usr/local/bin/rsp
32``` 32```
33 33
34`install.sh` does all of the above on FreeBSD and additionally installs an rc.d
35service. Enable it with:
36```
37sudo sysrc rsplayer_enable=YES
38sudo sysrc rsplayer_user=salmon # the user that runs the rsp CLI
39sudo service rsplayer start
40```
41
34FreeBSD notes: 42FreeBSD notes:
35- There is no systemd: run `rsp start-daemon` manually, from your login shell, 43- There is no systemd: the rc.d service (rsplayer.rc) runs `rsp start-daemon`
36 or via an rc.d script. `start-daemon`/`stop-daemon`/`restart` behave the same. 44 as rsplayer_user via daemon(8); `service rsplayer status`/`stop`/`restart`
45 work as expected. You can also run `rsp start-daemon` manually from your
46 login shell — `start-daemon`/`stop-daemon`/`restart` behave the same.
37- XDG_RUNTIME_DIR is not set by default on FreeBSD, so the daemon socket and PID 47- XDG_RUNTIME_DIR is not set by default on FreeBSD, so the daemon socket and PID
38 file fall back to /tmp/rsplayer/. Set XDG_RUNTIME_DIR in your rc.d script or 48 file fall back to /tmp/rsplayer/. Set XDG_RUNTIME_DIR in your rc.d script or
39 shell profile if you prefer a private runtime dir. 49 shell profile if you prefer a private runtime dir.