Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a system set up to start certain netctl profiles on boot. In some cases, the system may boot before the network's DHCP server does, so that profile fails to start. I would like it if I could configure this netctl profile kind of like a systemd service with Restart=on-failure, so that after a little delay, it'll try to start again. Is there a way to do that?
Alternatively, might netctl hooks be a way to do this (I haven't read up on them yet)? Or will I have to do brute-force it and write a script that constantly checks if the profile is running and tries to start it if it isn't?
Wouldn't it be easier to start netctl only after the network is definitely online?
How are you starting it in the first place? Via systemd? That has options to start something after something.
Wouldn't it be easier to start netctl only after the network is definitely online?
I suppose it would, but how do I know if the network is definitely online before trying to bring up the interface with netctl? Also, if there is no DHCP server available, I still want the system to finish booting, and if the netctl profile times out, it never tries to start again. So, if the DHCP server eventually shows up, the profile wouldn't try to start up again.
I suppose it would, but how do I know if the network is definitely online before trying to bring up the interface with netctl? Also, if there is no DHCP server available, I still want the system to finish booting, and if the netctl profile times out, it never tries to start again. So, if the DHCP server eventually shows up, the profile wouldn't try to start up again.
systemd provides for all these scenarios & possibilities.
Yep, that's why I'm hoping netctl does as well, but as I mentioned in my post, I don't know how to do that, and it's not a function of systemd. As far as I am aware, the netctl profile does not allow you to set systemd-type options (like Restart and RestartSec). Is there a way to add a systemd-style unit file that configures how that profile should behave as a "service?"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.