[systemd-devel] Help required for configuring a blocking service during shutdown

2022-08-29 Thread Henning Moll
Hi,   back in the rcX days I configured a backup system which blocks a system shutdown in a certain state (network and mounts still active) if a backup is still running. The init script looks like this:   ... case "$1" in ...   stop) 

Re: [systemd-devel] Help required for configuring a blocking service during shutdown

2022-08-29 Thread Mantas Mikulėnas
On Mon, Aug 29, 2022 at 1:31 PM Henning Moll wrote: > Hi, > > back in the rcX days I configured a backup system which blocks a system > shutdown in a certain state (network and mounts still active) if a backup > is still running. The init script looks like this: > > ... > case "$1" in > ... > >

Re: [systemd-devel] Problem: Renaming the USB network interface makes SYSTEMD_WANTS not working

2022-08-29 Thread Andrei Borzenkov
On 28.08.2022 23:35, Charles wrote: > Hello, > > Adding NAME="mywifi" to an udev rule causes the SYSTEMD_WANTS service to not > be executed. Removing NAME="mywifi" and the service is executed. How come? > ​ > >> /etc/udev/rules.d/10-network.rules >> SUBSYSTEM=="net", ACTION=="add",

Re: [systemd-devel] Problem: Renaming the USB network interface makes SYSTEMD_WANTS not working

2022-08-29 Thread Andrei Borzenkov
On 29.08.2022 19:38, Charles wrote: > Hello Andrei! > > I'm French, thank you for helping me out! You helped me to make progress! > > Your proposition worked and I found 2 other solutions. Unfortunately, I still > think it's a bug. Here’s the details with some questions if you have time: > >

Re: [systemd-devel] Problem: Renaming the USB network interface makes SYSTEMD_WANTS not working

2022-08-29 Thread Charles
Hello Andrei! I'm French, thank you for helping me out! You helped me to make progress! Your proposition worked and I found 2 other solutions. Unfortunately, I still think it's a bug. Here’s the details with some questions if you have time: “Add”, without renaming: > SUBSYSTEM=="net",