init/README.md

25 lines
517 B
Markdown
Raw Normal View History

2026-01-13 13:30:38 +11:00
# Simple Init System
A dependency-aware init system that resolves service order and executes them.
## Building
```bash
2026-01-13 13:52:18 +11:00
make
2026-01-13 13:30:38 +11:00
```
## Usage
1. **Resolve dependencies** for a runlevel (e.g., `1`):
```bash
bin/solver 1
```
2. **Execute** the runlevel:
```bash
bin/main 1
```
## Configuration
2026-01-13 13:50:47 +11:00
Example 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.