Skip to content

Support shutdown.parent_only #104

@apexskier

Description

@apexskier
error: The option `perSystem.aarch64-darwin.process-compose.<>.settings.processes.backend.shutdown.parent_only' does not exist.

Documented here - https://f1bonacc1.github.io/process-compose/launcher/#termination-parameters

I don't see it in

shutdown = {
command = mkOption {
type = types.nullOr types.str;
default = null;
example = "sleep 2 && pkill -f 'test_loop.bash my-proccess'";
description = ''
The command to run while process-compose is trying to gracefully shutdown the current process.
Note: The `shutdown.command` is executed with all the Environment Variables of the primary process
'';
};
signal = mkOption {
type = types.nullOr types.ints.unsigned;
default = null;
example = 15;
description = ''
If `shutdown.command` is not defined, exit the process with this signal. Defaults to `15` (SIGTERM)
'';
};
timeout_seconds = mkOption {
type = types.nullOr types.ints.unsigned;
default = null;
example = 10;
description = ''
Wait for `timeout_seconds` for its completion (if not defined wait for 10 seconds). Upon timeout, `SIGKILL` is sent to the process.
'';
};
};

I need this to gracefully handle shutdown in a use case I think.

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