Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Run the binary as PID 1 #133

@palm86

Description

@palm86

When starting the application with the binary in a container, the application does not run as PID 1, instead PID 1 is bin/sh:

Running ps ax in the container gives something like this:

    1 root      0:00  /bin/sh /root/.cache/bakeware/EDFA78004B57A028C6C7719538C380A8B3999ED9/start
   11 root      0:07 /root/.cache/bakeware/EDFA78004B57A028C6C7719538C380A8B3999ED9/erts-11.1.3/bin/beam.smp -- -root /root/.cache/bakeware/

Which means that SIGTERM never gets forwarded to the application, but dies with sh. That is bad for graceful shutdown. Would it be possible to use exec instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions