Page 1 of 1

Solution for long Linux boots because of systemd services

Posted: Tue Jan 07, 2020 10:46 am
by xeno74
Hi All,

Sometimes a systemd service has a big value for the variable "TimeoutStartSec" for example systemd's networking service. If systemd has a problem to raise up the network interfaces then the boot of a Linux system needs more time because systemd try to configure the network interfaces again till the TimeoutStartSec has reached the value. I set the variable "TimeoutStartSec" to 2 seconds and after a reboot the delay of initialisation of the network devices are gone.

Code: Select all

nano /etc/systemd/system/network-online.target.wants/networking.service

Code: Select all

TimeoutStartSec=2
Cheers,
Christian

Re: Solution for long Linux boots because of systemd service

Posted: Thu Jan 16, 2020 5:38 pm
by kilaueabart
I was very happy with the fast boot after I made this fix.

The down side was: No more internet!
Screenshot at 2020-01-16 08-21-12.png
Being able to use the internet from Fienix is worth the 62 second extra boot time, so I set TimeOutStartSec back to 5min.