TODO (autoparallel): this is actually never really able to be used at the moment. Restarts the daemon process with a 1-second delay between stop and start. # Errors Returns `LearnerdErrors` if either stop or start operations fail.
(&self)
| 321 | /// |
| 322 | /// Returns `LearnerdErrors` if either stop or start operations fail. |
| 323 | pub fn restart(&self) -> Result<()> { |
| 324 | self.stop()?; |
| 325 | std::thread::sleep(std::time::Duration::from_secs(1)); |
| 326 | self.start() |
| 327 | } |
| 328 | |
| 329 | /// Installs the daemon as a system service using platform-specific mechanisms. |
| 330 | /// |