kanit

Toy init system
Log | Files | Refs | README | LICENSE

ModeNameSize
-rw-r--r--.cargo/config.toml2L
-rw-r--r--.gitignore8L
-rw-r--r--.vscode/settings.json6L
-rw-r--r--.woodpecker/test.yml28L
-rw-r--r--Cargo.lock745L
-rw-r--r--Cargo.toml52L
-rw-r--r--LICENSE21L
-rw-r--r--README82L
-rw-r--r--crates/cli/Cargo.toml20L
-rw-r--r--crates/cli/src/blame.rs85L
-rw-r--r--crates/cli/src/flags.rs51L
-rw-r--r--crates/cli/src/lib.rs52L
-rw-r--r--crates/cli/src/main.rs3L
-rw-r--r--crates/cli/src/service/disable.rs19L
-rw-r--r--crates/cli/src/service/enable.rs24L
-rw-r--r--crates/cli/src/service/list.rs42L
-rw-r--r--crates/cli/src/service/mod.rs7L
-rw-r--r--crates/cli/src/teardown.rs28L
-rw-r--r--crates/common/Cargo.toml4L
-rw-r--r--crates/common/src/constants.rs9L
-rw-r--r--crates/common/src/error.rs151L
-rw-r--r--crates/common/src/lib.rs2L
-rw-r--r--crates/diagnostics/Cargo.toml19L
-rw-r--r--crates/diagnostics/src/lib.rs44L
-rw-r--r--crates/diagnostics/src/logger.rs92L
-rw-r--r--crates/diagnostics/src/scope.rs9L
-rw-r--r--crates/diagnostics/src/tap.rs57L
-rw-r--r--crates/diagnostics/src/timing.rs66L
-rw-r--r--crates/executor/Cargo.toml16L
-rw-r--r--crates/executor/src/lib.rs33L
-rw-r--r--crates/init/Cargo.toml48L
-rw-r--r--crates/init/src/baked_rc.rs20L
-rw-r--r--crates/init/src/bsod.rs111L
-rw-r--r--crates/init/src/ev_loop.rs89L
-rw-r--r--crates/init/src/lib.rs213L
-rw-r--r--crates/init/src/main.rs5L
-rw-r--r--crates/init/src/rc.rs42L
-rw-r--r--crates/rc/Cargo.toml58L
-rw-r--r--crates/rc/src/control.rs217L
-rw-r--r--crates/rc/src/event.rs143L
-rw-r--r--crates/rc/src/lib.rs14L
-rw-r--r--crates/rc/src/loader/mod.rs389L
-rw-r--r--crates/rc/src/loader/sort.rs252L
-rw-r--r--crates/supervisor/Cargo.toml21L
-rw-r--r--crates/supervisor/src/builder.rs161L
-rw-r--r--crates/supervisor/src/cli.rs124L
-rw-r--r--crates/supervisor/src/flags.rs127L
-rw-r--r--crates/supervisor/src/lib.rs11L
-rw-r--r--crates/supervisor/src/main.rs12L
-rw-r--r--crates/supervisor/src/supervisor.rs115L
-rw-r--r--crates/unit/Cargo.toml35L
-rw-r--r--crates/unit/src/dependencies.rs54L
-rw-r--r--crates/unit/src/formats/config.rs201L
-rw-r--r--crates/unit/src/formats/grouping.rs280L
-rw-r--r--crates/unit/src/formats/mod.rs8L
-rw-r--r--crates/unit/src/formats/testing.rs25L
-rw-r--r--crates/unit/src/formats/unit.rs397L
-rw-r--r--crates/unit/src/lib.rs6L
-rw-r--r--crates/unit/src/unit.rs75L
-rw-r--r--crates/units/Cargo.toml58L
-rw-r--r--crates/units/src/lib.rs6L
-rw-r--r--crates/units/src/loader.rs52L
-rw-r--r--crates/units/src/mounts.rs158L
-rw-r--r--crates/units/src/oneshot/cgroup.rs77L
-rw-r--r--crates/units/src/oneshot/clock.rs142L
-rw-r--r--crates/units/src/oneshot/devfs.rs240L
-rw-r--r--crates/units/src/oneshot/hostname.rs32L
-rw-r--r--crates/units/src/oneshot/hwdrivers.rs70L
-rw-r--r--crates/units/src/oneshot/localmount.rs127L
-rw-r--r--crates/units/src/oneshot/mdev.rs59L
-rw-r--r--crates/units/src/oneshot/mod.rs46L
-rw-r--r--crates/units/src/oneshot/modules.rs77L
-rw-r--r--crates/units/src/oneshot/procfs.rs49L
-rw-r--r--crates/units/src/oneshot/rootfs.rs63L
-rw-r--r--crates/units/src/oneshot/run.rs77L
-rw-r--r--crates/units/src/oneshot/seed.rs190L
-rw-r--r--crates/units/src/oneshot/swap.rs64L
-rw-r--r--crates/units/src/oneshot/sysctl.rs40L
-rw-r--r--crates/units/src/oneshot/sysfs.rs125L
-rw-r--r--crates/units/src/services/getty.rs60L
-rw-r--r--crates/units/src/services/mod.rs5L
-rw-r--r--crates/units/src/services/syslog.rs55L
-rw-r--r--docs/async.md17L
-rw-r--r--docs/man/kanit-unit.5157L
-rw-r--r--docs/man/kanit.8118L
-rw-r--r--docs/unit.md31L
-rw-r--r--justfile25L
-rw-r--r--scripts/answers19L
-rwxr-xr-xscripts/controller75L
-rwxr-xr-xscripts/init31L
-rw-r--r--scripts/initializer18L
-rwxr-xr-xscripts/prepare-vm53L
-rwxr-xr-xscripts/start30L
-rw-r--r--src/main.rs29L
-rw-r--r--units/syslog5L