mirror of
https://github.com/Soccera1/init.git
synced 2026-02-04 07:53:40 +01:00
Create README.md
This commit is contained in:
parent
9c9bd62b20
commit
3b5012af2e
1 changed files with 26 additions and 0 deletions
26
README.md
Normal file
26
README.md
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# Simple Init System
|
||||||
|
|
||||||
|
A dependency-aware init system that resolves service order and executes them.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p bin
|
||||||
|
gcc src/main.c -o bin/main
|
||||||
|
gcc src/solver.c -o bin/solver
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
1. **Resolve dependencies** for a runlevel (e.g., `1`):
|
||||||
|
```bash
|
||||||
|
bin/solver 1
|
||||||
|
```
|
||||||
|
2. **Execute** the runlevel:
|
||||||
|
```bash
|
||||||
|
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.
|
||||||
Loading…
Add table
Reference in a new issue