Allow daemons to be terminated in the absence of MySQL
Summary: Fixes T6842. Allow the daemons to always be terminated, even if MySQL is down. I was hoping to be able to optionally enable this behavior with the --force flag, but this seems messy.
Test Plan:
> ./bin/phd start Freeing active task leases... Freed 1 task lease(s). Preparing to launch daemons. NOTE: Logs will appear in '/var/tmp/phd/log/daemons.log'. Starting daemons as phd Launching daemon "PhabricatorRepositoryPullLocalDaemon". Starting daemons as phd Launching daemon "PhabricatorGarbageCollectorDaemon". Starting daemons as phd Launching daemon "PhabricatorTaskmasterDaemon". Done. > service mysql stop mysql stop/waiting > ./bin/phd stop Interrupting daemon 'PhabricatorRepositoryPullLocalDaemon' (4263)... Interrupting daemon 'PhabricatorGarbageCollectorDaemon' (4271)... Interrupting daemon 'PhabricatorTaskmasterDaemon' (4287)... Daemon 4263 exited. Daemon 4271 exited. Daemon 4287 exited.
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: Korvin, epriestley
Maniphest Tasks: T6842
Differential Revision: https://secure.phabricator.com/D11385