| 183 | /// ``` |
| 184 | #[derive(Clone, Debug, Serialize, Deserialize)] |
| 185 | pub 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 | |
| 205 | impl Default for Daemon { |
| 206 | fn default() -> Self { |
no outgoing calls
no test coverage detected