Updated README.
This commit is contained in:
parent
d9087102fd
commit
82ecb23a62
19
README.md
19
README.md
@ -1,12 +1,15 @@
|
|||||||
# httpprocwatchd
|
# httpprocwatchd Ver 1.2
|
||||||
|
|
||||||
It is a process watcher that gives processes' statuses in a JSON format via HTTP
|
This utility provides a HTTP `/processes` GET endpoint that returns a list of
|
||||||
GET request on /processes endpoint.
|
processes and if they are currently running or not.
|
||||||
|
|
||||||
A JSON object looks like this: `{ "<process name>":<true|false>, ... }`.
|
A list of processes could be in JSON or XML format, By default JSON being returned.
|
||||||
|
To get XML you need to provide a `Accept: application/xml` header in GET reqest.
|
||||||
|
|
||||||
A configuration file is in JSON format as well. There are two options:
|
A JSON object looks like this: `{ "process": true|false, ... }`.
|
||||||
`listen_address` is a string that looks like `"[<ip|host>]:<port>"` and an array
|
|
||||||
of process names.
|
|
||||||
|
|
||||||
An example configuration is stored in `config.example.json` file.
|
And XML `<ProcessList><Process name="process">true|false</Process>...</ProcessList>`.
|
||||||
|
|
||||||
|
|
||||||
|
Configuration file is a simple JSON object consisting of `listen_address` string field
|
||||||
|
in form `"[<ip|host>]:<port>"`. And `processes` array of process names.
|
Loading…
Reference in New Issue
Block a user