Systemd allows starting/stopping service from udev rule using SYSTEMD_USER_WANTS environment and StopWhenUnneeded option. But, service will be started when device is inserted and stopped when device is removed. What I need is vice versa:
- start service when device removed
- stop service when device inserted
Since it is user service, running 'systemctl start/stop ...' from udev rule fails.