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

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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