Restart a netctl profile on failure
by MALDATA from LinuxQuestions.org on (#59DBR)
Hi all,
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?
Thanks!


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?
Thanks!