Sign up ×
Server Fault is a question and answer site for 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
My limited experience is that the children don't get stopsignal at shutdown. They just get killed the hard way with everything else. Like I said that's just what it looks like is happening. I don't have a machine to truly test this on. – jsnklln Feb 17 at 15:23

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.

share|improve this answer

Your Answer


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.