|
|
|
|
|
by t43562
146 days ago
|
|
Init scripts were horrible Here's a dinit service file for starting my bluetooth daemon: type = process
command = /usr/lib/dinit/dbus-wait-for -s -f 4 -n org.bluez /usr/lib/bluetooth/bluetoothd
smooth-recovery = true
logfile = /var/log/dinit/bluetoothd.log
depends-on = dbus
depends-on = local.target
before = login.target
ready-notification = pipefd:4
This is about as complicated as it gets - ones I make myself might be 4 lines.There's no dodgy bash script behind all of this - it's C++ that just works - I can stop start, list and reload services with reliability. I love it. |
|