Re: [arch-general] udev rules 2 times exec script

2021-06-13 Thread Damjan Georgievski via arch-general
On Sat, 12 Jun 2021 at 13:59, Maykel Franco via arch-general wrote: > > Hi, I try configure the rule in udev for when I connect specific usb > device, launch script backup. > > I have this rule: > > /etc/udev/rules.d/10.autobackup.rules > > SUBSYSTEM=="block", ACTION=="add", ATTRS{idVendor}=="058f

Re: [arch-general] udev rules 2 times exec script

2021-06-12 Thread Maarten de Vries via arch-general
On Sat, 12 Jun 2021 at 18:44, Maykel Franco via arch-general < arch-general@lists.archlinux.org> wrote: > El sáb, 12 jun 2021 a las 17:43, mpan via arch-general > () escribió: > > > >If the command shares any resources, and name “autobackup” suggests > > it does, it should include some mechani

Re: [arch-general] udev rules 2 times exec script

2021-06-12 Thread Maykel Franco via arch-general
El sáb, 12 jun 2021 a las 17:43, mpan via arch-general () escribió: > >If the command shares any resources, and name “autobackup” suggests > it does, it should include some mechanism that prevents concurrent > execution if another instance is already running. Otherwise, even if a > single match

Re: [arch-general] udev rules 2 times exec script

2021-06-12 Thread mpan via arch-general
If the command shares any resources, and name “autobackup” suggests it does, it should include some mechanism that prevents concurrent execution if another instance is already running. Otherwise, even if a single match happens, multiple instances of the script may be executed. For USB devices