git: 5a0478bf4034 - main - www/lighttpd: fix regression on service restart

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 12 Oct 2021 22:52:38 UTC
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"