mirror of
https://github.com/Soccera1/init.git
synced 2026-02-04 05:33:41 +01:00
No description
| examples | ||
| src | ||
| .gitignore | ||
| COPYING | ||
| GEMINI.md | ||
| Makefile | ||
| README.md | ||
Simple Init System
A dependency-aware init system that resolves service order and executes them.
Building
mkdir -p bin
gcc src/main.c -o bin/main
gcc src/solver.c -o bin/solver
Usage
- Resolve dependencies for a runlevel (e.g.,
1):bin/solver 1 - Execute the runlevel:
bin/main 1
Configuration
Service scripts are located in examples/. Dependencies are declared on the first line of runlevel-specific scripts (e.g., 1.service.sh) using a # prefix followed by the generic script names.