Lighttpd error (status 255)

Mounting /var/log to tmpfs causes lighttpd to stop after reboot?

Sounds like a lighttpd specific error. Does it give any error message?

`loaded (/lib/systemd/system/lighttpd.service; enabled)
Active: failed (Result: exit-code) since Thu 2017-05-18 10:26:43 EDT; 1min 31s ago
Process: 9576 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Process: 9568 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 9576 (code=exited, status=255)

May 18 10:26:43 raspberrypi lighttpd[9568]: Syntax OK
May 18 10:26:43 raspberrypi systemd[1]: Started Lighttpd Daemon.
May 18 10:26:43 raspberrypi lighttpd[9576]: 2017-05-18 10:26:43: (log.c.118) opening errorlog '/var/log/lighttpd/error.log' failed: no such file or directory
May 18 10:26:43 raspberrypi systemd[1]: lighttpd.service: main process exited, code=exited, status=255/n/a
May 18 10:26:43 raspberrypi systemd[1]: Unit lighttpd.service entered failed state`

If you uninstall and reinstall lighttpd then it works, but after a reboot it gives this error (while /var/log is mounted on tmpfs). After removing /var/log from tmpfs it works fine. Why is that?

When you mount /var/log as tmpfs, then on every reboot it will be empty, i.e. the folder /var/log/lighttpd will be missing in which lighttpd tries to create its log file. Hence, it fails with:

Thanks for the explanation, I thought it's for error log only and doesn't affect its function...