From 3f61d7080bc1cb14988a65ac433cbc5959857c16 Mon Sep 17 00:00:00 2001 From: "Anderson A. Giacomolli" Date: Sun, 8 Nov 2026 22:59:06 -0300 Subject: [PATCH] Document user service updates The README gives the update commands after a git pull. The same result link keeps the new package available, and linking the unit again makes the user manager load the unit from that package before the service restarts. Issue: 99a5e07 --- README.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.rst b/README.rst index 9fbf6dd..5f4266a 100644 --- a/README.rst +++ b/README.rst @@ -195,6 +195,16 @@ the service: ONECHAT_DIR=DATA_DIR ./result-service/bin/onechat chat journalctl --user -u onechat.service -f +After ``git pull``, build with the same result link, link the unit +again, reload the user manager, and restart the service: + +.. code:: console + + nix build --out-link result-service + systemctl --user link --force "$(realpath result-service/share/systemd/user/onechat.service)" + systemctl --user daemon-reload + systemctl --user restart onechat.service + The service starts with the user manager at login, not at boot without a login. To stop it, or also remove its start at login: -- 2.53.0