docker-nexus icon indicating copy to clipboard operation
docker-nexus copied to clipboard

Runsvdir downside

Open xuoja-acc opened this issue 4 years ago • 1 comments

Hi,

The usage of runsvdir is usefull to being able to restore from a backup but prevent gracefull stop of his childs processes when you try to stop the container.

The docker stop command attempts to stop a running container first by sending a SIGTERM signal to the root process (PID 1) in the container.

If runsvdir receives a TERM signal, it exits with 0 immediately (https://www.unix.com/man-page/centos/8/runsvdir/)

The aftermath of this : you can't gracefully stop nexus when you do any of this actions , because every of this commands send SIGTERM to the root process(runsvdir) :

  • kubectl delete
  • kubectl scale statefulset --replicas=0
  • helm delete
  • docker stop

Best regards.

xuoja-acc avatar Nov 24 '20 16:11 xuoja-acc

Hi @ajoux-accor! Thanks for reporting the issue, we will investigate possible ways to fix this.

cmoroianu1 avatar Nov 25 '20 16:11 cmoroianu1