HomePhabricator

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

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

Provenance
joshuaspenceAuthored on
epriestleyCommitted on Jun 5 2014, 7:13 PM
epriestleyPushed on Jun 5 2014, 7:13 PM
Reviewer
Blessed Reviewers
Differential Revision
D9226: Make `./bin/aphlict` behave more like a service.
Parents
rPfe98aa6839f0: Publish additional context to the Aphlict server.
Branches
Unknown
Tags
Unknown
Tasks
T5126: `./bin/aphlict` should behave more like a service.

Event Timeline