Homec4science

Allow daemons to be terminated in the absence of MySQL

Authored by Joshua Spence <josh@joshuaspence.com> on Jan 14 2015, 20:56.

Description

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

Details

Committed
Joshua Spence <josh@joshuaspence.com>Jan 14 2015, 20:56
Pushed
aubortJan 31 2017, 17:16
Parents
rPH1f09e05c683c: Automatically create the Aphlict log directory
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHa85452b8d6ec: Allow daemons to be terminated in the absence of MySQL (authored by Joshua Spence <josh@joshuaspence.com>).Jan 14 2015, 20:56