[SRU] Allow NGINX to install but not start during postinst if another process is bound to port 80
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Fix Released
|
Wishlist
|
Thomas Ward | ||
Bionic |
Fix Released
|
High
|
Andres Rodriguez | ||
Cosmic |
Fix Released
|
Wishlist
|
Thomas Ward |
Bug Description
[Impact]
Currently, NGINX installations trigger an installation "failure case" when another process is bound to port 80 and NGINX is trying to use its default configuration files.
This can lead to installation bug reports which are not actually bugs, or having to alter configuration files before completing installations.
It might be better for postinst to determine if we actually need to start or restart the service based on if something is listening on port 80.
[Test Case]
Failure
--------
1. Install haproxy (or apache2)
2. Configure it to bind to port 80 (apache2 will be automatically configured)
3. Install nginx
4. The installation will be broken as it will fail to install.
Success
-------
1. Do (1), (2) and (3) as above.
2. The installation will succeed. nginx won't auto start allowing it do install correctly even if you have haproxy binding on port 80.
[Regression Potential]
Minimal. This change won't break installation of nginx. In fact it will allow it to install if another daemon is binding to port 80.
Changed in nginx (Ubuntu): | |
assignee: | nobody → Thomas Ward (teward) |
Changed in nginx (Ubuntu Cosmic): | |
status: | In Progress → Fix Committed |
summary: |
- Allow NGINX to install but not start during postinst if another process - is bound to port 80 + [SRU] Allow NGINX to install but not start during postinst if another + process is bound to port 80 |
description: | updated |
PPA for testing is here: https:/ /launchpad. net/~teward/ +archive/ ubuntu/ nginx-1782226