Skip to contentSkip to conversation

About udev rule removal

DISCUSSION Pacho Ramos 2 participants 4 messages Jun 29, 2012 – Jul 6, 2012 Bluetooth drivers

lore
Share & tools
lore
#1 lore raw
Quoted 9 lines · Pacho Ramos

I would like to know what distributions not relying on systemd are supposed to get bluetoothd autostarted now that udev rule was dropped:
http://git.kernel.org/?p=bluetooth/bluez.git;a=commit;h=2ea98a6a043710ad4958355b62c682b4767f292e

Looks like we go back from udev rule to manually starting bluetoothd all the time, even if bluetooth device is not connected? Why are we going back to old behavior?

Thanks for the info

Should we revert that change downstream if we are not going to rely on systemd and until udev is changed to break that setup (forcing us to go to old "always running" behavior)?

#2 lore raw
Quoted 9 lines · Pacho Ramos
Quoted 8 lines · Pacho Ramos

I would like to know what distributions not relying on systemd are supposed to get bluetoothd autostarted now that udev rule was dropped:
http://git.kernel.org/?p=bluetooth/bluez.git;a=commit;h=2ea98a6a043710ad4958355b62c682b4767f292e

Looks like we go back from udev rule to manually starting bluetoothd all the time, even if bluetooth device is not connected? Why are we going back to old behavior?

Quoted 5 lines
Quoted 1 line

Thanks for the info

Should we revert that change downstream if we are not going to rely on systemd and until udev is changed to break that setup (forcing us to go to old "always running" behavior)?

Udev rules are not supposed to spawn daemons. It never was. And now if you do that udev will kill your daemon after a certain timeout. You'd need to a) maintain that rule by yourself and b) patch udev to not do that.

Lucas De Marchi

#3 lore raw
Quoted 16 lines · Lucas De Marchi
Quoted 9 lines · Pacho Ramos
Quoted 8 lines · Pacho Ramos

I would like to know what distributions not relying on systemd are supposed to get bluetoothd autostarted now that udev rule was dropped:
http://git.kernel.org/?p=bluetooth/bluez.git;a=commit;h=2ea98a6a043710ad4958355b62c682b4767f292e

Looks like we go back from udev rule to manually starting bluetoothd all the time, even if bluetooth device is not connected? Why are we going back to old behavior?

Quoted 5 lines
Quoted 1 line

Thanks for the info

Should we revert that change downstream if we are not going to rely on systemd and until udev is changed to break that setup (forcing us to go to old "always running" behavior)?

Quoted 8 lines

Udev rules are not supposed to spawn daemons. It never was. And now if you do that udev will kill your daemon after a certain timeout. You'd need to a) maintain that rule by yourself and b) patch udev to not do that.

Lucas De Marchi

Will go with the old way of starting it with an init.d script then. Thanks for the info.