Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2972

Increase the Upstart script kill timeout

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.1
    • Affects Version/s: 1.8.1
    • Component/s: Packaging
    • Labels:
      None
    • Environment:
      Ubuntu or Debian with Upstart
    • Linux

      When stopping a service managed by Upstart, it uses a default kill timeout of 5 seconds. It sends the service a TERM signal, and if it doesn't stop in 5 seconds it does a hard stop with the KILL signal. 5 seconds is often not enough time for MongoDB to stop (this is often the case for us). It's probably worthwhile to override the default in the packaged /etc/init/mongodb.conf and set it to several minutes or indefinite to be safe.

      Here's info on kill timeout in the Upstart docs:
      http://upstart.ubuntu.com/cookbook/#kill-timeout

            Assignee:
            jfm3 Joe Miklojcik
            Reporter:
            andrewloc Andrew R
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: