User avatar
AverageGuy
Posts: 4
Joined: Sun Aug 18, 2013 1:39 pm
Location: Atlanta

Lighttpd doesn't restart after reboot.

Tue Jul 26, 2016 2:14 pm

Command line restart works fine. I even put /etc/init.d/lighttpd restart command in rc.local proceeded by a sleep 20 but it produced a "Starting web server: lighttpd failed!" message. Nothing in the lighttpd error log.

Running Rasbian Wheezy.

Any ideas? I'm about to stick a script in cron to keep it running.

Thanks,
Jim.

User avatar
MarkHaysHarris777
Posts: 1820
Joined: Mon Mar 23, 2015 7:39 am
Location: Rochester, MN
Contact: Website

Re: Lighttpd doesn't restart after reboot.

Tue Jul 26, 2016 2:55 pm

Read-up on what it takes to make any application code a service in systemd.

... systemd is the replacement for sysvinit. It is the 'new' init, and can be used to start everything including your coffee maker.

google how to make a systemd service.

marcus
marcus
:ugeek:

User avatar
rpdom
Posts: 14742
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Lighttpd doesn't restart after reboot.

Tue Jul 26, 2016 6:32 pm

MarkHaysHarris777 wrote:Read-up on what it takes to make any application code a service in systemd.

... systemd is the replacement for sysvinit. It is the 'new' init, and can be used to start everything including your coffee maker.
On Wheezy?

Heater
Posts: 12969
Joined: Tue Jul 17, 2012 3:02 pm

Re: Lighttpd doesn't restart after reboot.

Tue Jul 26, 2016 6:34 pm

Step 1: Upgrade to Jessie.

User avatar
AverageGuy
Posts: 4
Joined: Sun Aug 18, 2013 1:39 pm
Location: Atlanta

Re: Lighttpd doesn't restart after reboot.

Thu Jul 28, 2016 9:14 am

It's a remote site about 8 hours from here. I'm not going to upgrade to jessie any time soon. There is a file in /etc/init.d and it's being executed however the server aborts with no useful information.

pksato
Posts: 295
Joined: Fri Aug 03, 2012 5:25 pm
Location: Brazil

Re: Lighttpd doesn't restart after reboot.

Thu Jul 28, 2016 8:05 pm

Hi,
You verified error log?
/var/log/lighttpd/error.log

Or, check config syntax
lighttpd -t -f /etc/lighttpd/lighttpd.conf

Return to “General discussion”