I have not looked at the detection code but it might be possible to use "ss" instead of lsof to detect if anything listens on a given port. "ss" comes from iproute2 so it's more widely available.
$ ss -nto state listening 'sport = 80' Recv-Q Send-Q Local Address:Port Peer Address:Port 0 0 *:80 *:* 0 0 :::80 :::* I tried suppressing the header with "-H/--no-header" but ss segfaults but that's for another LP :) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1782226 Title: Allow NGINX to install but not start during postinst if another process is bound to port 80 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1782226/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
