No description
Find a file
2026-01-13 13:30:38 +11:00
examples Fix script execution and duplicate script execution 2026-01-13 12:40:54 +11:00
src Fix vulnerabilities 2026-01-13 13:03:16 +11:00
.gitignore Initial commit 2026-01-12 23:10:46 +11:00
COPYING Create COPYING 2026-01-12 23:40:30 +11:00
GEMINI.md Create GEMINI.md 2026-01-13 13:18:09 +11:00
README.md Create README.md 2026-01-13 13:30:38 +11:00

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

  1. Resolve dependencies for a runlevel (e.g., 1):
    bin/solver 1
    
  2. 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.