Skip to content

osamakader/minit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minit

Minimal PID1 replacement for embedded systems. A middle ground between BusyBox init and systemd.

Features

  • JSON or simple conf — service definitions in .json or .conf
  • Service supervision — track and respawn processes
  • Restart policiesalways, on-failure, never
  • Auto-restart with backoff — exponential backoff to avoid restart storms
  • Signal handling — SIGTERM, SIGINT → graceful shutdown
  • Boot time measurement — write boot_ms to /var/run/minit.boot
  • Dependency ordering — topological start order via depends / provides
  • Crash logging — log exits to /var/log/minit/crashes.log
  • Minimal footprint — <500KB static memory

Build

make

Usage

./minit [config]
# Default config: /etc/minit.conf or MINIT_CONFIG env

About

Minimal init system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors