litin

a semi-simple to understand, init system, crystalized and built for Arch Linux

Litin — Minimal init & supervisor (Crystal)

This repository contains the initial skeleton for Litin, a script-first init and supervisor written in Crystal (targeting Crystal v1.18.2). It is an early-stage prototype focused on the MVP features: loading shell service scripts, supervising simple services, and a control socket.

Files included

  • shard.yml - basic shards metadata
  • src/ - Crystal sources (litin.cr, service_registry.cr, supervisor.cr, control_socket.cr, logger.cr)
  • bin/litinctl - small POSIX shell client for control socket (uses socat/netcat)
  • etc/litin/rc.d/sshd - example service script (POSIX shell)
  • PKGBUILD.example - skeleton PKGBUILD for Arch packaging

Development & testing

  • You can run Litin in "dev" mode (non-PID1) for easier testing:
    crystal run src/litin.cr -- --no-pid1 --rc-dir=./etc/litin/rc.d --run-dir=./run
    
  • The project places runtime files under ./run/litin/ by default when run in dev mode.

Notes

This is an initial prototype. Some parts are intentionally simplified (process spawning, reaping, and logging). Expect iterative improvements and tightened error handling in subsequent steps.

Repository

litin

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • 24 days ago
  • November 11, 2025
License

MIT License

Links
Synced at

Mon, 08 Dec 2025 02:29:59 GMT

Languages