Fix Debian init script

  - 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

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>