Increase the Upstart script kill timeout

XMLWordPrintableJSON

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

      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:
            Joe Miklojcik
            Reporter:
            Andrew R
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: