How to start Tor only when network works in upstart framework?