Skip to content

Start mpd-alsa docker automatically when a usb sound card is plugged in #442

Answered by ers4691
ers4691 asked this question in Q&A
Discussion options

You must be logged in to vote

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’

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@ers4691
Comment options

Answer selected by ers4691
@GioF71
Comment options

Comment options

You must be logged in to vote
1 reply
@GioF71
Comment options

Comment options

You must be logged in to vote
1 reply
@GioF71
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants