Hi,

I don���t know if is useful in your case, but you made me remember I made a small tool to trap unix signals within Pharo. I uploaded then to github. 

https://github.com/estebanlm/pharo-posix-signal

is very easy to use and it will allow you to trap any signal and do what you want ;)

Esteban


On 28 Oct 2017, at 13:39, Herby Voj����k <herby@mailbox.sk> wrote:

Hi,

I had to find out how to automatically deploy the backend written in Pharo, and so far it uses docker-compose stop to stop the instance (and later docker-compose up -d to get everything up again).

I noticed the stop phase takes a while and ends with status code 137. I presume it ended forcefully and not gracefully.

What is the idiomatic way to wait on SIGTERM and close the process gracefully?

Thanks, Herby