subsystemctl 0.2.0

Utility to run systemd in WSL2 with a Linux namespace
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("Unexpected format in /proc/self/mounts")]
    InvalidProcMounts,

    #[error("Systemd not found in standard locations (machinectl and systemd are necessary)")]
    NoSystemdFound,

    #[error("Systemd is not running")]
    NotRunning,

    #[error("Something went wrong while waiting")]
    WaitFailed,

    #[error("Something went wrong while starting, exitstatus={0}")]
    StartFailed(i32),
}