Function pueue_daemon_lib::run[][src]

pub async fn run(config_path: Option<PathBuf>, test: bool) -> Result<()>
Expand description

The main entry point for the daemon logic. It’s basically the main, but publicly exported as a library. That way we can properly do integration testing for the daemon.

For the purpose of testing, some things shouldn’t be run during tests. There are some global operations that crash during tests, such as the ctlc handler. This is due to the fact, that tests in the same file are executed in multiple threads. Since the threads own the same global space, this would crash.