Bug 256643

Summary: www/lighttpd: Default configuration file error prevent lighttpd to start.
Product: Ports & Packages Reporter: Santiago Martinez <sm>
Component: Individual Port(s)Assignee: Piotr Kubaj <pkubaj>
Status: Closed FIXED    
Severity: Affects Only Me CC: m.fujimoto, pkubaj
Priority: --- Flags: linimon: maintainer-feedback? (pkubaj)
Version: Latest   
Hardware: Any   
OS: Any   

Description Santiago Martinez 2021-06-16 10:59:51 UTC
Lighttpd version "lighttpd-1.4.59" from ports "quarterly" install its default configuration file, with the "var.state_dir=/run" which is not a valid/default path on FreeBSD.

this prevents the lighttpd to start. 

Starting lighttpd.
2021-06-16 13:58:37: server.c.1270) opening pid-file failed: /run/lighttpd.pid: No such file or directory
2021-06-16 13:58:37: server.c.317) unlink failed for: /run/lighttpd.pid: No such file or directory
/usr/local/etc/rc.d/lighttpd: WARNING: failed to start lighttpd

Changing the value of "var.state_dir=" to "/var/run" fix the issues.
Comment 1 Masayoshi Fujimoto 2021-08-17 22:49:35 UTC
Thank you. It works to me.
Comment 2 Piotr Kubaj freebsd_committer 2021-08-17 23:28:54 UTC
Thanks, committed!
Comment 3 commit-hook freebsd_committer 2021-08-17 23:28:59 UTC
A commit in branch main references this bug:

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

commit babf3112deb1e32bfbe3b79733786aea9cec3a87
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-08-17 23:28:05 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-08-17 23:28:05 +0000

    www/lighttpd: change the default var.state_dir to fix runtime

    PR:     256643
    Reported by:    sm@codenetworks.net

 www/lighttpd/Makefile | 3 +++
 1 file changed, 3 insertions(+)