On 02/01/18 21:41, Tom Horsley wrote:
> On Thu, 1 Feb 2018 11:32:44 +0000
> Terry Barnaby wrote:
>
>> Does the system " target Network is Online" get reached after DHCP 
>> configuration ?
> Probably doesn't matter because systemd has no idea what "up"
> means when it comes to networks :-(.
>
> ypbind is one of the services I always just start in rc.local
> with a delay:
>
> /bin/bash -c 'sleep 5 ; systemctl restart ypbind' > /dev/null 2>&1 < 
> /dev/null &
>
> The only way I could get it to reliably start on every boot.
>
> Of course, you can't just put that in rc.local any longer because
> something changed recently that makes systemd go funny in the head
> with stuff started in rc.local, so this is really in the-real-rc.local
> and rc.local looks like:
>
> /usr/bin/at -M now <<'HERE' > /dev/null 2>&1
> /etc/rc.d/the-real-rc.local
> HERE
>
I've not tried this since I don't have a need for ypbind. 

One may also consider copying /lib/systemd/system/ypbind.service to
/etc/systemd/system and then inserting the line,

ExecStartPre=/usr/bin/sleep 5

From the systemd documentation

ExecStart= commands are only run after all ExecStartPre= commands that were not
prefixed with a "-" exit successfully.


-- 
A motto of mine is: When in doubt, try it out

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to