From 1b3243edebc78ab0e6d042f0cc0722cfe343f62b Mon Sep 17 00:00:00 2001 From: Nils <> Date: Tue, 15 Mar 2022 18:45:10 +0100 Subject: [PATCH] Changelog and documentation for new daemon discovery files --- CHANGELOG | 1 + docs/api/index.html | 18 ++++++++++++-- docs/index.html | 2 +- docs/src/api/index.adoc | 14 ++++++++++- src/nsmd.cpp | 52 ++++++++++++++++++++++++++++++++--------- 5 files changed, 72 insertions(+), 15 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c3bbf29..0efa29f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,7 @@ nsmd now follows the XDG Base Directory Specifications: Lockfiles fixed (see issue #gh-31) Lockfiles are now in $XDG_RUNTIME_DIR/nsm/ Lockfiles now each contain the session path, the osc NSM_URL and the nsmd PID + One daemon file for each currently running nsmd is created in $XDG_RUNTIME_DIR/nsm/d/ containing the osc url. This enables discovery of running daemons. New section in the API documentation for the above. Fixes and guards against trying to load non-existing sessions and creating new sessions under existing names diff --git a/docs/api/index.html b/docs/api/index.html index 9aa861e..a678630 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -467,6 +467,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
@@ -796,6 +797,19 @@ osc.udp://myuser.localdomain:11287/ +Each running nsmd
, per user, creates a state file under $XDG_RUNTIME_DIR/nsm/d/
(usually
+/run/user/XXXX/nsm/d/
) that can be used to look up running daemons, even if no session is loaded.
+The files contains the daemons osc.udp URL that is compatible with the --nsm-url parameter of the GUI.
This enables you to e.g. start nsmd at boot with a random free port. Server-control programs such +as GUIs can then use this to look for running servers without requiring the user to look up and +input an osc URL manually as command line parameter.
+nsmd now follows the XDG Base Directory Specifications for it’s session root and lock files. This if of no consequence to clients but required documentation nevertheless, which was described as -"background information" in the new section.
+"background information" in the chapters for lock files and daemon disovery.