OpenRC How to delay service startup?

Posted on

Problem :

I tried looking for a way to delay a service in startup because it slows down starting. I want to delay Dhcpc startup, because its probing IP too long. So I want to delay it after logging in, but I couldn’t find anything in OpenRC gentoo wiki.

I have been using systemd my whole life so OpenRC is totally new to me. I just know how to add a service or remove it but I have no idea about delaying.

Solution :

For this specific case, dhcpd, what you want to do is edit /etc/conf.d/dhcpd, uncomment the last line and modify it to read DHCPD_OPTS="-b". This should background the service immediately, and let boot go on. I’ve not tested this for compatibility with other services that expect an address, but it should accomplish what you want.

Leave a Reply

Your email address will not be published. Required fields are marked *