Skip to main content

Module init

Module init 

Source
Expand description

Get information about systemd services

§Usage

use ferrix_lib::init::SystemdServices;
use zbus::Connection;
 
let mut conn = Connection::system().await.unwrap();
let systemd = SystemdServices::new_from_connection(&conn)
    .await
    .unwrap();
 
dbg!(systemd);

Structs§

BootTimestamps
Connection
A D-Bus connection.
OwnedObjectPath
Owned ObjectPath
ServiceInfo
SystemdServices
A structure containing information about systemd services

Enums§

ActiveState
LoadState
UnitType
WorkState