I am just trying this configuration, as I would like to reduce the number of connected devices and see if this can release a raspberry-pi. Currently I have implemented the file and checked that it is being used. The lighttpd service does not start with the current external.conf file I am using. The service shows:
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-10-11 11:40:14 AEST; 4s ago
Process: 2385 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Process: 2544 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Main PID: 2385 (code=exited, status=0/SUCCESS)
Oct 11 11:40:13 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Oct 11 11:40:13 raspberrypi systemd[1]: lighttpd.service: Failed with result ‘exit-code’.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Oct 11 11:40:14 raspberrypi systemd[1]: Stopped Lighttpd Daemon.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Start request repeated too quickly.
Oct 11 11:40:14 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Failed with result ‘exit-code’.
journalctl -xe
Oct 11 11:40:13 raspberrypi systemd[1]: lighttpd.service: Failed with result ‘exit-code’.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Oct 11 11:40:14 raspberrypi systemd[1]: Stopped Lighttpd Daemon.
– Subject: Unit lighttpd.service has finished shutting down
– Defined-By: systemd
– Support: Debian -- User Support
– Unit lighttpd.service has finished shutting down.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Start request repeated too quickly.
Oct 11 11:40:14 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
– Subject: Unit lighttpd.service has failed
– Defined-By: systemd
– Support: Debian -- User Support
– Unit lighttpd.service has failed.
– The result is failed.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Unit entered failed state.
Oct 11 11:40:14 raspberrypi systemd[1]: lighttpd.service: Failed with result ‘exit-code’.
Oct 11 11:40:57 raspberrypi sudo[2566]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/vi /etc/ligh
Oct 11 11:40:57 raspberrypi sudo[2566]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 11 11:44:38 raspberrypi piaware[544]: 1 msgs recv’d from dump1090-fa (0 in last 5m); 0 msgs sent to FlightAware
Oct 11 11:45:04 raspberrypi sudo[2566]: pam_unix(sudo:session): session closed for user root
I would like to try and get this working and share the knowledge with the rest of the community if I can resolve the issue. Any thoughts would be appreciated.
Logs so far looked at
/var/log/lighttpd/error.log
2018-10-11 11:18:11: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
2018-10-11 11:18:40: (server.c.1828) server stopped by UID = 0 PID = 1
2018-10-11 11:18:50: (log.c.217) server started
/var/log/lighttpd/access.log
1539220871|192.168.27.14|GET /admin/api.php?summary HTTP/1.1|200|468
1539220873|192.168.27.14|GET /admin/api.php?summary HTTP/1.1|200|468
1539220875|192.168.27.14|GET /admin/api.php?summary HTTP/1.1|200|468
lighttpd -tp -f /etc/lighttpd/lighttpd.conf | less
Duplicate array-key ‘/dump1090-fa/data/’
2018-10-11 12:10:10: (configfile.c.1154) source: cat external.conf 2>/dev/null line: 9 pos: 15 parser failed somehow near here: (EOL)
2018-10-11 12:10:10: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 76 pos: 1 parser failed somehow near here: (EOL)