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.
Thank you. It works to me.
Thanks, committed!
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(+)