All Tini does is spawn a single child (Tini is meant to be run in a container), and wait for it to exit all the while reaping zombies and performing signal forwarding. It protects you from software that accidentally creates zombie processes, which can (over time!) starve your entire system for PIDs (and make it unusable). It ensures that the default signal handlers work for the software you run in your Docker image. For example, with Tini, SIGTERM properly terminates your process even if you didn't explicitly install a signal handler for it. It does so completely transparently! Docker images that work without Tini will work with Tini without any changes. Add Tini to your container, and make it executable. Then, just invoke Tini and pass your program and its arguments as arguments to Tini.

Features

  • Tini will reuse the child's exit code when exiting
  • By default, Tini needs to run as PID 1
  • ARM and 32-bit binaries are available!
  • Tini only kills its immediate child process
  • Tini can set its parent death signal
  • Tini can also be used with an existing entrypoint in your container!

Project Samples

Project Activity

See All Activity >

Categories

Init

License

MIT License

Follow Tini

Tini Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Tini!

Additional Project Details

Operating Systems

Linux

Programming Language

C

Related Categories

C Init Software

Registered

2021-09-15