[pkg-lighttpd] Bug#383425: Bug#383425: lighttpd: little script to check for listening socket
Krzysztof Krzyżaniak
eloy at kofeina.net
Fri Jan 25 11:10:00 UTC 2008
Bastian Kleineidam wrote:
> Package: lighttpd
> Version: 1.4.18-1
> Followup-For: Bug #383425
>
> Hi,
>
> here is a little perl script that checks if a port is already used
> by trying to bind() to it. I propose in the postinst you do:
>
> if fresh_install:
> if port 80 is taken (by using the supplied script):
> ask debconf question for alternative port number
> configure alternative port number
> start lighttpd
>
> The debconf question might look like:
>
> Port number to start lighttpd under
> The standard HTTP server port 80 seems to be occupied by another
> program. In order to start lighttpd you have to choose an alternative
> port number, eg. port 81.
>
>
> This way users can install apache, and then lighttpd without conflicts.
Nice one. I'll try to put this in package.
eloy
--
-------e-l-o-y----------------------------e-l-o-y- at -k-o-f-e-i-n-a-.-n-e-t------
jak to dobrze, ¿e s± oceany - bez nich by³oby jeszcze smutniej
More information about the pkg-lighttpd-maintainers
mailing list