-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 6.6.7, 6.10.1
-
Component/s: Server - Installer / Setup
-
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
- Download installer of Confluence.
- Add the execute flag to the installer.
- 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.
- relates to
-
PSR-147 Loading...