-
Improvement
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
I have started reworking the net-online initscript to be better. I've made the following changes:
- Removed the link check (instead, just do an end-to-end connectivity test.)
- Add a bash function that will repeatedly attempt something but will insert a 0.5 second delay automatically if the attempts are aborting immediately (prevents exhausting all your attempts too quickly)
- Moving from wget to curl, mainly because wget's man page does not accurately describe its actual behavior which makes things a bit frustrating.
- I have net-online always succeed. It simply inserts a helpful delay to allow WAN connectivity to be established at boot time. But if this script fails, it creates a cascading failure and a lot of services fail to start. Without the wan-services runlevel (see FL-6658) it is pretty deadly, as it can prevent login via the console and the proper booting of the system. With the wan-services runlevel added, it could be useful to have an infinite delay, and not cause harm. So I may allow this to be configurable – whether the net-online initscript always succeeds – via a conf.d variable setting.