MCPcopy Create free account
hub / github.com/Autoparallel/learner / Daemon

Class Daemon

crates/learnerd/src/daemon/mod.rs:185–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183/// ```
184#[derive(Clone, Debug, Serialize, Deserialize)]
185pub struct Daemon {
186 /// Path to store the PID file.
187 ///
188 /// This file contains the process ID of the running daemon and is used
189 /// for process management and status checks.
190 pub pid_file: PathBuf,
191 /// Working directory for the daemon.
192 ///
193 /// This directory holds runtime data and temporary files. It should be
194 /// persistent across daemon restarts.
195 pub working_dir: PathBuf,
196 /// Directory for log files.
197 ///
198 /// Contains:
199 /// - Daily rotating log files
200 /// - stdout/stderr capture
201 /// - Debug logs
202 pub log_dir: PathBuf,
203}
204
205impl Default for Daemon {
206 fn default() -> Self {

Callers 2

execute_commandMethod · 0.85
stopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected