Other useful info:
I've run
udevadm test --action=remove 
/devices/platform/soc/1c14000.usb/usb1/1-1/1-1.2/1-1.2:1.2/ttyUSB2/tty/ttyUSB2
Several times, but everytime I got

ACTION=remove
DEVNAME=/dev/ttyUSB2
DEVPATH=/devices/platform/soc/1c14000.usb/usb1/1-1/1-1.2/1-1.2:1.2/ttyUSB2/tty/ttyUSB2
MAJOR=188
MINOR=2
SUBSYSTEM=tty
run: '/opt/trx/gprs-modem-symlink-handler.bash remove 
/devices/platform/soc/1c14000.usb/usb1/1-1/1-1.2/1-1.2:1.2/ttyUSB2/tty/ttyUSB2 
ttyUSB2'
Unload module index
Unloaded link configuration context.

Which is the correct behaviour.

But, again, when in unplugged the modem it doesn't run RUNscript for ttyUSB2.
I'm sure it doesn't raises error because in /var/log/syslog the log line
starting '/bin/bash /opt/trx/gprs-modem-symlink-handler.bash remove 
/devices/platform/soc/1c14000.usb/usb1/1-1/1-1.2/1-1.2:1.2/ttyUSB2/tty/ttyUSB2 
ttyUSB2'
Is missing (only when I have this bad behaviour, so not every disconnection, 
but randomly).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906263

Title:
  Udev Randomly Doesn't Run Run Script on Remove

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1906263/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to