Bug 256643 - www/lighttpd: Default configuration file error prevent lighttpd to start.
Summary: www/lighttpd: Default configuration file error prevent lighttpd to start.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Piotr Kubaj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-16 10:59 UTC by Santiago Martinez
Modified: 2021-08-17 23:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 2021-08-17 23:28:54 UTC
Thanks, committed!
Comment 3 commit-hook freebsd_committer freebsd_triage 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(+)