Homec4science

Make `./bin/aphlict` behave more like a service.

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

Description

Make ./bin/aphlict behave more like a service.

Summary: Fixes T5126. Provide start, stop, restart, debug and status workflows for ./bin/aphlict. This makes it easier to manage Aphlict as if it were a service.

Test Plan:

> sudo ./bin/aphlict status
Aphlict is not running.

> sudo ./bin/aphlict stop
Aphlict is not running.

> sudo ./bin/aphlict start
Aphlict Server started.

> sudo ./bin/aphlict status
Aphlict (12880) is running.

> sudo ./bin/aphlict restart
Stopping Aphlict Server (12880)...
Aphlict Server (12880) exited normally.
Aphlict Server started.

> sudo ./bin/aphlict stop
Stopping Aphlict Server (12895)...
Aphlict Server (12895) exited normally.

> sudo ./bin/aphlict debug
Starting Aphlict server in foreground...
Launching server:

    $ node '/usr/src/phabricator/src/applications/aphlict/management/../../../../support/aphlict/server/aphlict_server.js' --port='22280' --admin='22281' --host='localhost' --user='aphlict'

[Fri May 30 2014 09:56:14 GMT+0000 (UTC)] Started Server (PID 12911)

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: hach-que, epriestley, Korvin

Maniphest Tasks: T5126

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

Details

Committed
epriestley <git@epriestley.com>Jun 5 2014, 21:13
Pushed
aubortJan 31 2017, 17:16
Parents
rPHfe98aa6839f0: Publish additional context to the Aphlict server.
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH8a7a7dcbf1cb: Make `./bin/aphlict` behave more like a service. (authored by Joshua Spence <josh@joshuaspence.com>).Jun 5 2014, 21:13