Confluence doesn't get installed as a service even when the installer is run as root in Ubuntu

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Summary

      According to the guide of installing Confluence on Linux Server, if the installer is run as root, Confluence will be installed as a service. Although, it doesn't get installed as a service on Ubuntu.

      Testing Environment

      Ubuntu 18.04 LTS
      Confluence installer 6.10.1

      Steps to reproduce

      1. Download installer of Confluence.
      2. Add the execute flag to the installer.
      3. Run the installer as root.

      Expected Results

      Confluence should be installed as a service.

      Actual Result

      Confluence doesn't get installed as a service.

      Workaround

      Installer does create the /etc/init.d/confluence file, though it doesn't have the run levels in it.
      So, if we will directly enable the service, Ubuntu throws an error.

      update-rc.d: error: confluence Default-Start contains no runlevels, aborting.
      

      We need to add the following lines on the top of /etc/init.d/confluence file, but after the shebang.

      ### BEGIN INIT INFO
      # Required-Start:    $all
      # Required-Stop:
      # Default-Start:     2 3 4 5
      # Default-Stop:
      ### END INIT INFO
      

      After the above change, run the following command again to install Confluence as a service.

      systemctl enable confluence
      

      Diagnosis

      This issue does not happen in CentOS, which means it might be an issue with update-rc.d scripts in Ubuntu.

            Assignee:
            Minh Tran
            Reporter:
            Hassan Aftab
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: