diff options
| author | salmon <salmonik@tuta.io> | 2026-08-09 23:28:12 +0200 |
|---|---|---|
| committer | salmon <salmonik@tuta.io> | 2026-08-09 23:28:12 +0200 |
| commit | da4147a8ca2ed92556eb56061a63e0cccb1984ce (patch) | |
| tree | f6135a996a5dc53bdbf1a0166fb7234f37baa1c5 /README.md | |
| parent | Document FreeBSD requirements in README (diff) | |
| download | rsplayer-da4147a8ca2ed92556eb56061a63e0cccb1984ce.tar.gz rsplayer-da4147a8ca2ed92556eb56061a63e0cccb1984ce.zip | |
Add FreeBSD rc.d service, install completions only for installed shells
Diffstat (limited to '')
| -rw-r--r-- | README.md | 14 |
1 files changed, 12 insertions, 2 deletions
| @@ -31,9 +31,19 @@ cargo build --release | |||
| 31 | install -m 755 target/release/rsp /usr/local/bin/rsp | 31 | install -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 | ||
| 35 | service. Enable it with: | ||
| 36 | ``` | ||
| 37 | sudo sysrc rsplayer_enable=YES | ||
| 38 | sudo sysrc rsplayer_user=salmon # the user that runs the rsp CLI | ||
| 39 | sudo service rsplayer start | ||
| 40 | ``` | ||
| 41 | |||
| 34 | FreeBSD notes: | 42 | FreeBSD 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. |
