FS#30373 - [bluez] bluetooth init script kills ALL processes on stop action.
Attached to Project:
Arch Linux
Opened by Natrio (natrio) - Wednesday, 20 June 2012, 07:37 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 23 June 2012, 00:45 GMT
Opened by Natrio (natrio) - Wednesday, 20 June 2012, 07:37 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 23 June 2012, 00:45 GMT
|
Details
After psmisc-22.18-1 package update, killall command without
any parameters kills REALLY all.
See https://bugs.archlinux.org/task/30372 In bluetooth init scripts: $ grep killall /etc/rc.d/bluetooth killall $PAND_NAME >/dev/null 2>&1 killall $DUND_NAME >/dev/null 2>&1 killall $HIDD_NAME >/dev/null 2>&1 killall $SDPD_NAME >/dev/null 2>&1 killall $DAEMON_NAME >/dev/null 2>&1 If any of these variables will be empty, overkill will happen. |
This task depends upon
Yes, but if yoy run the command
/etc/rc.d/bluetooth stop
it meaning like "kill all system immediate" :)
I took this opportunity to tidy up the rc script a bit. However, I suspect the whole thing could and should be rewritten. E.g. I notice that the systemd unit file shipped upstream only starts the main daemon and not any of the auxiliary ones. Could it be that we don't need to start them either (i.e. they are started on demand by the main daemon?). I'd need to look into this, but if anyone happens to know I'd be interested...
Second, you can configure some of this using the main daemon. I don't think you can configure dund and pand automatically, but I don't really know. You may still need rfcomm - while you can configure serial ports for a connected device, rfcomm setup is needed if you want to connect to a bluetooth device on demand when accessing the serial port.