Re: [systemd-devel] multiple starts for a socket-based service

2023-08-06 Thread Mantas Mikulėnas
On 2023-08-06 03:42, Ross Boylan wrote: On Fri, Aug 4, 2023 at 4:32 PM Kevin P. Fleming wrote: On Fri, Aug 4, 2023, at 18:11, Ross Boylan wrote: Theory: since br0 has no associated IP address when socket creation is attempted, the socket creation fails. If so, I need to delay socket startup

Re: [systemd-devel] multiple starts for a socket-based service

2023-08-05 Thread Andrei Borzenkov
On 06.08.2023 03:42, Ross Boylan wrote: On Fri, Aug 4, 2023 at 4:32 PM Kevin P. Fleming wrote: On Fri, Aug 4, 2023, at 18:11, Ross Boylan wrote: Theory: since br0 has no associated IP address when socket creation is attempted, the socket creation fails. If so, I need to delay socket startup

Re: [systemd-devel] multiple starts for a socket-based service

2023-08-05 Thread Ross Boylan
On Fri, Aug 4, 2023 at 4:32 PM Kevin P. Fleming wrote: > > On Fri, Aug 4, 2023, at 18:11, Ross Boylan wrote: > > Theory: since br0 has no associated IP address when socket creation is > > attempted, the socket creation fails. If so, I need to delay socket > > startup until br0 has an IP4

Re: [systemd-devel] multiple starts for a socket-based service

2023-08-04 Thread Kevin P. Fleming
On Fri, Aug 4, 2023, at 18:11, Ross Boylan wrote: > Theory: since br0 has no associated IP address when socket creation is > attempted, the socket creation fails. If so, I need to delay socket > startup until br0 has an IP4 address, but I'm not sure how to do > that--or even if that is the

Re: [systemd-devel] multiple starts for a socket-based service

2023-08-04 Thread Ross Boylan
Well, the problem is not completely solved. The socket is not starting when the system comes up (tried it twice): Aug 04 11:33:16 barley systemd[1757]: family.socket: Failed to create listening socket (192.168.1.10:14987): Cannot assign requested address Aug 04 11:33:16 barley systemd[1]:

Re: [systemd-devel] multiple starts for a socket-based service [SOLVED]

2023-08-04 Thread Ross Boylan
Thank you, Mantas. With your very detailed response I was able to get something working. I also added StandardInput=socket to the service to give easy access to the command from the client. Here's the current configuration: # /etc/systemd/system/family.socket [Unit] Description=Socket to tickle

Re: [systemd-devel] multiple starts for a socket-based service

2023-08-03 Thread Mantas Mikulėnas
On Thu, Aug 3, 2023, 21:09 Ross Boylan wrote: > Hi, systemd-ers. I'm trying to do something that seems at cross > purposes with systemd's assumptions, and I'm hoping for some guidance. > > Goal: remote client sends a 1 line command to a server, which executes > a script that does not create a

[systemd-devel] multiple starts for a socket-based service

2023-08-03 Thread Ross Boylan
Hi, systemd-ers. I'm trying to do something that seems at cross purposes with systemd's assumptions, and I'm hoping for some guidance. Goal: remote client sends a 1 line command to a server, which executes a script that does not create a long-running service. These events will be rare. I