tini icon indicating copy to clipboard operation
tini copied to clipboard

Add an option to restart the child process

Open ashishshinde opened this issue 4 years ago • 1 comments

Some applications need to be restarted, for example, to reload the configuration. For various reasons they do not/cannot implement a signal-based graceful reload of configuration.

In containerized environments, containers restart can be costly for applications like databases that would need to scan disk to recreate indices or caches on container delete and restart. For example, the Aerospike NoSQL database stores the indices in shared memory to enable a quick restart and will benefit from restarting within the container without having shared memory segments being lost.

A -r option can be added such that when tini receives this, it terminates and restarts the child process to enable graceful reloads of configuration without losing shared memory or caches stored on ephemeral storage.

ashishshinde avatar Jul 11 '21 08:07 ashishshinde

I think this is "out of scope" for tini: https://github.com/krallin/tini/issues/71#issuecomment-272652178, https://github.com/krallin/tini/pull/146, https://github.com/krallin/tini/pull/187

yosifkit avatar Jun 28 '22 16:06 yosifkit