On Fri, Nov 26, 2021 at 07:57:37PM -0600, Corey Minyard wrote: > If this is what I think it is, this is a common issue on systems at > boot; ser2net is started before networking is enabled. Some sort of > dependencies need to be added to the ser2net systemd code, though I'm > not sure what.
I am not sure about that, it is probably a combination of [Unit] After=network-online.target Wants=network-online.target https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ gives some explanation about what systemd thinks what a "modern" service should do. I have not yet seen a service that does it "right" the way systemd thinks the world should be. I also know that there is a TCP socket option that allows a service to bind to an IP address before the address is configured. Otoh, ser2net listens on :: which should always be available. What also bothers me is the error message ser2net[625]: Invalid port name/number: Invalid data to parameter on line 30 column 0 since it might refer to a serial port as well as to a TCP port. I guess this misled me to ser2net complaining about the /dev/ttyAMA0 not appearing in time. Additionally, the ser2net.yml quoted by the original bug reporter in the original bug report does not seem to have 30 lines. This is all very strange for me. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421