4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
    Type 1 or more characters for results.
    Links per page: 20 50 100
    page 1 / 1
    1 results tagged ini x
    • Note: Docker stop non standard software (ignoring SIGTERM)

      docker stop command send SIGTERM to pid1 inside the container to let a chance to stop gracefully (https://www.ctl.io/developers/blog/post/gracefully-stopping-docker-containers/)
      Unfortunatly some software ignore SIGTERM and need to be stopped by their own command (hello opendj)

      To do so, in the Dockerfile, in the CMD, I use a script like this :
      /thecommand/tostart/thesoftware/inbackground
      trap "/thecommand/tostop/thesoftware" SIGTERM
      while true; do sleep 1; done

      so my script is run with PID1, docker stop sends SIGTERM, my script catch (trap) the signal, and run the command to stop gracefully

      February 16, 2017 at 2:16:44 PM GMT+1 - permalink - archive.org - https://links.infomee.fr/?Mxx31A
      catch docker ini script signal stop trap
    Links per page: 20 50 100
    page 1 / 1
    Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation