Page 1 of 1

Changing boot order or stopping programs from loading

Posted: Wed Apr 10, 2019 5:06 am
by charleslinquist
I would like to change the order of services loaded during boot. My network is powered by the same power supply as the Raspberry, and the Raspberry boots quicker. I have several network services that don't load because the network hasn't yet made a connection. I need to load those network services last (or maybe in rc.local), not early in the boot process.
I believe that some versions of Linux have this information in rc.d, but Raspbian doesn't have that file.

So... how do I change the order of the drivers loaded during boot? I realize that I'll need to be careful of dependencies.

Re: Changing boot order or stopping programs from loading

Posted: Wed Apr 10, 2019 11:08 am
by Andyroo
There is an option in raspi-config to wait for the network to start before completing the boot process.

This can be found by using the command

Code: Select all

sudo raspi-config
Then select boot options

raspi-config documentation is https://www.raspberrypi.org/documentati ... -config.md

This adds dhcpcd -q -w in to /etc/systemd/system/dhcpcd.service.d/wait.conf rather than changing sequencing of start up tasks.

Edit: Added command in to explanation and corrected code / url tag error.

Re: Changing boot order or stopping programs from loading

Posted: Wed Apr 10, 2019 3:32 pm
by Paul Hutch
Just tried the raspi-config option and at least on the latest Raspbian Lite, it does not wait for what most people consider a valid network connection. It allows boot to complete even if there is no LAN connection via eth0 and wlan0 due to unplugged cable and no valid SSID/key pair.