Bug 259114 - www/lighttpd: regression on service restart
Summary: www/lighttpd: regression on service restart
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Piotr Kubaj
URL:
Keywords: patch, regression
Depends on:
Blocks:
 
Reported: 2021-10-12 21:14 UTC by Dirk Meyer
Modified: 2021-10-12 23:09 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pkubaj)


Attachments
hotfix (578 bytes, patch)
2021-10-12 21:15 UTC, Dirk Meyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Meyer freebsd_committer freebsd_triage 2021-10-12 21:14:07 UTC
after update to 1.4.60

Problem:

# service lighttpd restart
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:

# killall lighttpd
# service lighttpd restart
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.

$ truss /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd/lighttpd.conf -tt
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2021-10-12 21:15:56 UTC
Created attachment 228637 [details]
hotfix
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-10-12 22:53:35 UTC
A commit in branch main references this bug:

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(-)
Comment 3 Piotr Kubaj freebsd_committer freebsd_triage 2021-10-12 23:09:22 UTC
Committed, thanks!