Fix Debian init script

Turns out the Debian init script was still broken.

  - Fix bash test syntax error
  - Properly test that TSD has started successfully
  - Pass appropriate exit code to log_action_end_msg if TSD fails to start