Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have process that needs arbitrary amount of time to shutdown, anywhere between 2 seconds and couple of minutes. It is important that this process exits gracefully (not killed). I use supervisord and ubuntu server to run it.

When the server get ACPI shutdown signal (reboot command from a VPS provider, that's what EC2 does I assume), will supervisord (and the whole system) wait for all the child processes to exit during shutdown sequence?

share|improve this question

1 Answer 1

You should check out the following configuration options:

stopsignal to specify which signal gets sent to your program in order to tell it to stop gracefully

stopwaitsecs to specify how long supervisord should wait for the process to stop gracefully, before giving up and sending a SIGKILL.

http://supervisord.org/configuration.html#program-x-section-settings

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.