Homec4science

Add a `--local` flag for the `./bin/phd status` workflow.

Authored by Joshua Spence <josh@joshuaspence.com> on Jun 21 2014, 22:09.

Description

Add a --local flag for the ./bin/phd status workflow.

Summary: It is sometimes useful to use ./bin/phd status as a means to determine if daemons are actually running on the current host. For example, a common practice in upstart scripts is something similar to ./bin/phd status || ./bin/phd status.

Test Plan:

> ./bin/phd status
ID   Host            PID  Started                 Daemon                               Arguments
1162 ip-10-127-58-93 4046 Jun 20 2014, 3:17:43 AM PhabricatorFactDaemon
1161 ip-10-127-58-93 3984 Jun 20 2014, 3:17:43 AM PhabricatorTaskmasterDaemon
1160 ip-10-127-58-93 3973 Jun 20 2014, 3:17:42 AM PhabricatorTaskmasterDaemon
1159 ip-10-127-58-93 3968 Jun 20 2014, 3:17:42 AM PhabricatorTaskmasterDaemon
1158 ip-10-127-58-93 3943 Jun 20 2014, 3:17:42 AM PhabricatorTaskmasterDaemon
1157 ip-10-127-58-93 3914 Jun 20 2014, 3:17:41 AM PhabricatorGarbageCollectorDaemon
1156 ip-10-127-58-93 3909 Jun 20 2014, 3:17:41 AM PhabricatorRepositoryPullLocalDaemon

> ./bin/phd status --local
There are no running Phabricator daemons.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9645

Details

Committed
Joshua Spence <josh@joshuaspence.com>Jun 21 2014, 22:09
Pushed
aubortJan 31 2017, 17:16
Parents
rPH9f2efd0fa048: Remove ajaxey comment magic in Pholio, and also some bugs
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHddd8c9c567e9: Add a `--local` flag for the `./bin/phd status` workflow. (authored by Joshua Spence <josh@joshuaspence.com>).Jun 21 2014, 22:09