orientechnologies / orientdb-docker

OrientDB running in a docker container
MIT License
63 stars 63 forks source link

Which signal orientdb handles for gracefully shutdown #67

Closed samkhamk closed 2 years ago

samkhamk commented 2 years ago

Hello There,

Sorry this is not proper channel but I want to know which signal orientdb handles for gracefully shutdown SIGINT SIGTERM or SIGKILL which I can mention in docker file to build orientdb image.

Regards, SAM

tglman commented 2 years ago

Hi, this may help : https://github.com/orientechnologies/orientdb/blob/develop/core/src/main/java/com/orientechnologies/orient/core/OSignalHandler.java#L64 right now SIGKILL, SIGHUP,SIGINT,SIGTERM cause all the graceful shutdown, be aware that SIGKILL my be intercepted by the OS e remove the process without telling anything to it.