Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2021 22:52:38 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5a0478bf4034 - main - www/lighttpd: fix regression on service restart
Message-ID:  <202110122252.19CMqcx6026328@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a0478bf403492de3669d19eba56347939bef24a

commit 5a0478bf403492de3669d19eba56347939bef24a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-10-12 22:49:58 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-10-12 22:49:58 +0000

    www/lighttpd: fix regression on service restart
    
    Problem:
    
    Performing sanity check on lighttpd configuration:
    lighttpd not running? (check /var/run/lighttpd.pid).
    Starting lighttpd.
    2021-10-12 23:02:07: (network.c.419) can't bind to socket: 0.0.0.0:80: Address already in use
    /usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd
    
    
    Workaround:
    
    Performing sanity check on lighttpd configuration:
    lighttpd not running? (check /var/run/lighttpd.pid).
    Starting lighttpd.
    
    Diagnostics:
    
    When "lighttpd_checkconfig" runs,
    the content of the pid file is removed.
    
    PR:     259114
    Submitted by:   dinoex
---
 www/lighttpd/Makefile          | 1 +
 www/lighttpd/files/lighttpd.in | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile
index 15be00d0567e..0787fb915951 100644
--- a/www/lighttpd/Makefile
+++ b/www/lighttpd/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME?=	lighttpd
 PORTVERSION=	1.4.60
+PORTREVISION=	1
 CATEGORIES?=	www
 MASTER_SITES?=	https://download.lighttpd.net/lighttpd/releases-1.4.x/
 
diff --git a/www/lighttpd/files/lighttpd.in b/www/lighttpd/files/lighttpd.in
index 3ea8749e615e..1894d95c50e4 100644
--- a/www/lighttpd/files/lighttpd.in
+++ b/www/lighttpd/files/lighttpd.in
@@ -47,7 +47,7 @@ fi
 
 command=%%PREFIX%%/sbin/lighttpd
 stop_postcmd=stop_postcmd
-restart_precmd="lighttpd_checkconfig"
+#restart_precmd="lighttpd_checkconfig"
 graceful_precmd="lighttpd_checkconfig"
 graceful_cmd="lighttpd_graceful"
 gracefulstop_cmd="lighttpd_gracefulstop"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110122252.19CMqcx6026328>