From da4147a8ca2ed92556eb56061a63e0cccb1984ce Mon Sep 17 00:00:00 2001 From: salmon Date: Sun, 9 Aug 2026 23:28:12 +0200 Subject: Add FreeBSD rc.d service, install completions only for installed shells --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'README.md') 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 install -m 755 target/release/rsp /usr/local/bin/rsp ``` +`install.sh` does all of the above on FreeBSD and additionally installs an rc.d +service. Enable it with: +``` +sudo sysrc rsplayer_enable=YES +sudo sysrc rsplayer_user=salmon # the user that runs the rsp CLI +sudo service rsplayer start +``` + FreeBSD notes: -- There is no systemd: run `rsp start-daemon` manually, from your login shell, - or via an rc.d script. `start-daemon`/`stop-daemon`/`restart` behave the same. +- There is no systemd: the rc.d service (rsplayer.rc) runs `rsp start-daemon` + as rsplayer_user via daemon(8); `service rsplayer status`/`stop`/`restart` + work as expected. You can also run `rsp start-daemon` manually from your + login shell — `start-daemon`/`stop-daemon`/`restart` behave the same. - XDG_RUNTIME_DIR is not set by default on FreeBSD, so the daemon socket and PID file fall back to /tmp/rsplayer/. Set XDG_RUNTIME_DIR in your rc.d script or shell profile if you prefer a private runtime dir. -- cgit v1.2.3