Skip to main content

Module paths

Module paths 

Source
Expand description

Shared path computation for daemon socket, PID file, database, and shadow directory.

Both the server and client modules use these functions to agree on where the daemon listens and where auxiliary files are stored.

Functionsยง

data_dir
Returns the daemon data directory (where the SQLite tracking database lives) WITHOUT creating it. Read-only callers (doctor, status probes) use this; db_path keeps its create-on-derive behavior.
db_path
Returns the path to the daemon SQLite database.
db_path_view
Read-only variant of db_path: derives the same path without creating any directory. Used by read-only inspectors (#391).
make_socket_name
Build an interprocess local socket interprocess::local_socket::Name from the path returned by socket_path.
pid_file_path
Returns the path to the daemon PID file.
pid_file_path_view
Read-only variant of pid_file_path: derives the same path without creating any directory. Used by read-only inspectors (#391).
shadow_dir
Returns the shadow directory used for ephemeral run data.
shadow_dir_view
Read-only variant of shadow_dir: derives the same path without creating any directory. Used by read-only inspectors (#391).
socket_path
Returns the local socket name the daemon listens on.
socket_path_view
Read-only variant of socket_path: derives the same endpoint string without creating any directory. Used by read-only inspectors (#391).