mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-09 16:10:34 -04:00
daemon/root: Move ftrace initialization
This commit is contained in:
parent
38d52626e8
commit
2d6da03520
1 changed files with 5 additions and 3 deletions
|
@ -119,6 +119,11 @@ impl DaemonContext for RootContext {
|
|||
daemon: &mut Daemon<RootContext>,
|
||||
) -> Result<()> {
|
||||
self.state = state;
|
||||
|
||||
let connection = daemon.get_connection();
|
||||
let ftrace = Ftrace::init(connection).await?;
|
||||
daemon.add_service(ftrace);
|
||||
|
||||
self.reload_ds_inhibit(daemon).await?;
|
||||
|
||||
Ok(())
|
||||
|
@ -187,8 +192,5 @@ pub async fn daemon() -> Result<()> {
|
|||
let context = RootContext::new(tx);
|
||||
let mut daemon = Daemon::new(subscriber, connection.clone(), rx).await?;
|
||||
|
||||
let ftrace = Ftrace::init(connection).await?;
|
||||
daemon.add_service(ftrace);
|
||||
|
||||
daemon.run(context).await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue