Skip to content

Add an option to restart the child process #186

@ashishshinde

Description

@ashishshinde

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions