-
Hi, The udev rule is Does anyone have an idea? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hello, maybe try to re-create the container when the event occurs (docker-compose up -d --force-recreate), that should do the trick. |
Beta Was this translation helpful? Give feedback.
-
Here are the details:
----------- /root/startMusic.sh
The Musik.yml is based on you example files; I'm also starting a spotify container and rompr. |
Beta Was this translation helpful? Give feedback.
-
That's right. I still have a rule in the udev-rules for shutting down the container.
in stopMusic.sh is:
I need to read up on the services and the interaction with udev rules. |
Beta Was this translation helpful? Give feedback.
I think I've found it.
It's not the container, it's udev. :-)
I think it takes udev too long to boot the container.
That's why I used now SYSTEMD_WANTS instead of RUN.
It works
My new rule:
SUBSYSTEM==‘sound’, ACTION==‘add’, DEVPATH==‘/devices/pci0000:00/0000:00:15.0/usb1/1-3/1-3:1.0/sound/card?’, ENV{SYSTEMD_WANTS}+=‘SMSL.service’ TAG+= ‘systemd’