Skip to content

How can i graceful restart a program ? #624

@sdbaiguanghe

Description

@sdbaiguanghe

i have a program that need zero-downtime restarts which mean without dropping any connections.
when this program receive signal USR1,it will fork&exec a child process handle the new conntion and when the parent finish all the previous conntion it will exit.i want supervisor supervisor the child process.
what should i do to achieve my purpose? how supervisor restart a program ,send a TERM signal to stop and then start?
my english is poor , i hope you can understand what i mean,thanks ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions