diff options
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. |
