RE: How to handle SIGTERM

2020-04-15 Thread GLIMMERVEEN Arnoud
Hi David,

Do you see that deleting a pod takes a long time? In my experience there is a 
particular way you must start your Java process/OSGi container in order for 
these signals to propagate, this is described here 
(https://hynek.me/articles/docker-signals/).

Best regards,

Arnoud

-Original Message-
From: David Leangen [mailto:o...@leangen.net]
Sent: Wednesday, 15 April, 2020 09:31
To: dev@felix.apache.org
Subject: How to handle SIGTERM

Hi!

Does Felix have a way of handling a SIGTERM event?

I was not able to find any documentation about that.

I am trying to containerize my app and run it in Kubernetes. It looks like 
Kubernetes can send a SIGTERM event to a container, and the container is 
expected to shutdown gracefully (do whatever cleanup is necessary).

If the container running Felix receives this signal, what happens to Felix? How 
can I gracefully handle this type of situation?


Thanks!
=David




Disclaimer:

If you are not the intended recipient of this email, please notify the sender 
and
delete it.
Any unauthorized copying, disclosure or distribution of this email or its
attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage caused by this 
email or
its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at the Chamber of
Commerce under number 06061578.




How to handle SIGTERM

2020-04-15 Thread David Leangen
Hi!

Does Felix have a way of handling a SIGTERM event?

I was not able to find any documentation about that.

I am trying to containerize my app and run it in Kubernetes. It looks like 
Kubernetes can send a SIGTERM event to a container, and the container is 
expected to shutdown gracefully (do whatever cleanup is necessary).

If the container running Felix receives this signal, what happens to Felix? How 
can I gracefully handle this type of situation?


Thanks!
=David