Comment 102 for bug 1532226

May I suggest a simpler version of the bamfdaemon-dbus-runner script:

#!/bin/sh

if [ -n "$UPSTART_SESSION" ]; then
  initctl status bamfdaemon | grep -q start || initctl start bamfdaemon
else
  /usr/lib/x86_64-linux-gnu/bamf/bamfdaemon
fi

Regards,
Simon