lighttpd does not start automatically
lighttpd does not start automatically even if it is configured to start automatically. Starting it manually after the system is up works.
Looks like lighttpd fails because dnsmasq does start late and trying to resolve hosts name fails. In tune lighttpd stops and is not restarted by systemd.
dnsmasq may start late if some interfaces are created late it is configured to bind to. I am seeing this problem with installed:
- vmware workstation
- vmware player
- virtual box
- kvm (if networking is build up via script while starting kvm)
dnsmasq may delay starting in such cases until all interfaces are up and configured. lighttpd does not wait until this happened. It bails out with resolver errors.
DistroRelease: Ubuntu 16.04
Package: lighttpd 1.4.35-4ubuntu2
Uname: Linux 4.4.0-43-generic x86_64
Date: Thu Oct 13 17:06:07 2016
InstallationDate: Installed on 2014-01-31 (986 days ago)
InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 (20131016)
PATH=(custom, no user)
UpgradeStatus: Upgraded to xenial on 2016-09-06 (37 days ago)