Re: fedora27: ypbind intermittent startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux