Re: Autostart command after network is available (usbip)

2022-02-09 Thread Andrei POPESCU
On Ma, 08 feb 22, 17:49:16, Christian Britz wrote: > > > On 2022-02-08 17:44 UTC+0100, Christian Britz wrote: > > > [Install] > > WantedBy=multiuser.target > > Changed that to > > [Install] > WantedBy=network-online.target That's like putting the carriage before the horse ;) (and it

Re: Autostart command after network is available (usbip)

2022-02-09 Thread 황병희
Andy Smith writes: > [... long line snip ...] > > https://strugglers.net/~andy/blog/2020/12/03/starting-services-only-when-the-network-is-ready-on-debiansystemd/ Thanks Andy! Added into my bookmark Firefox. Sincerely, Linux fan Byung-Hee

Re: Autostart command after network is available (usbip)

2022-02-08 Thread Andy Smith
Hello, On Tue, Feb 08, 2022 at 05:44:25PM +0100, Christian Britz wrote: > On 2022-02-08 16:46 UTC+0100, Greg Wooledge wrote: > > On Tue, Feb 08, 2022 at 03:46:09PM +0100, Christian Britz wrote: > >> Is this to be done via systemd? > > > > Yes, that's where you should be doing this. > > That is

Re: Autostart command after network is available (usbip)

2022-02-08 Thread Christian Britz
On 2022-02-08 17:44 UTC+0100, Christian Britz wrote: > [Install] > WantedBy=multiuser.target Changed that to [Install] WantedBy=network-online.target Now it works! :-) -- http://www.cb-fraggle.de

Re: Autostart command after network is available (usbip)

2022-02-08 Thread Greg Wooledge
On Tue, Feb 08, 2022 at 05:44:25PM +0100, Christian Britz wrote: > On 2022-02-08 16:46 UTC+0100, Greg Wooledge wrote: > > There's one thing in particular that you need to know first, and that's > > how Debian defines interfaces for the purposes of determining that > > "the network is available".

Re: Autostart command after network is available (usbip)

2022-02-08 Thread Christian Britz
On 2022-02-08 16:46 UTC+0100, Greg Wooledge wrote: > On Tue, Feb 08, 2022 at 03:46:09PM +0100, Christian Britz wrote: >> I want to know how I can execute a command as root once after the >> network is available. > >> Is this to be done via systemd? > > Yes, that's where you should be doing this.

Re: Autostart command after network is available (usbip)

2022-02-08 Thread Greg Wooledge
On Tue, Feb 08, 2022 at 03:46:09PM +0100, Christian Britz wrote: > I want to know how I can execute a command as root once after the > network is available. > Is this to be done via systemd? Yes, that's where you should be doing this. There's one thing in particular that you need to know first,

Re: Autostart command after network is available (usbip)

2022-02-08 Thread Dan Ritter
Christian Britz wrote: > I want to know how I can execute a command as root once after the > network is available. > > I activated usbipd on my home server and want to attach the client > automatically at boot. Manually attaching it works already. > > The command to be executed as root on the

Autostart command after network is available (usbip)

2022-02-08 Thread Christian Britz
I want to know how I can execute a command as root once after the network is available. I activated usbipd on my home server and want to attach the client automatically at boot. Manually attaching it works already. The command to be executed as root on the client is: usbip attach -r hostname -b