Uploaded image for project: 'Xinit'
  1. Xinit
  2. XINIT-22

Let systemd restart a crashed XWiki and send the crash notification

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • Unknown

    Description

      check-proc polls a pid file every minute to find out that the JVM died. The Debian packages run XWiki under systemd (tomcatN.service, xwiki.service), which has no such pid file, knows immediately when the process dies, and already restarts it (Restart=on-abort).

      Rely on systemd for restarting a dead process and use OnFailure= to send the notification with diagnostics. Keep polling only for what systemd cannot see, such as a hung JVM.

      Attachments

        Issue Links

          Activity

            People

              ciaens Clément Christiaens
              ciaens Clément Christiaens
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: