]> git.giacomolli.uk - onechat/blobdiff - README.rst
Document user service updates
[onechat] / README.rst
index 9fbf6ddd89ff71d19fc762a77c4148425e7d9582..5f4266a025b0a19f4805bbdd124a3c403c66b11a 100644 (file)
@@ -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: