Comment 1 for bug 1301962

Revision history for this message
Michael Schaller (misch-9) wrote :

The problematic part is in the bluez postinst script:
# Automatically added by dh_installinit
if [ -x "/etc/init.d/bluetooth" ] || [ -e "/etc/init/bluetooth.conf" ]; then
 if [ ! -e "/etc/init/bluetooth.conf" ]; then
  update-rc.d bluetooth defaults >/dev/null
 fi
 invoke-rc.d bluetooth start || exit $?
fi

$ sudo invoke-rc.d bluetooth start ; echo "exit code: $?"
start: Job failed to start
invoke-rc.d: initscript bluetooth, action "start" failed.
exit code: 1

$ sudo /etc/init.d/bluetooth start ; echo "exit code: $?"
 * Starting bluetooth [ OK ]
exit code: 0

$ sudo start bluetooth ; echo "exit code: $?"
start: Job failed to start
exit code: 1

So the Upstart job has an issue. Unfortunately after adding 'console output' to the bluetooth Upstart job configuration the job started without issues. Once I encounter this issue again I will further troubleshoot...