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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
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