1
0
HTTP service that returns a list of process' names with boolean values that respectively telling us if process is running or not. For UNIX-like OS only.
Go to file
2021-03-13 16:36:14 +04:00
.gitignore Initial commit. 2021-03-13 03:17:30 +04:00
config.example.json Initial commit. 2021-03-13 03:17:30 +04:00
go.mod Initial commit. 2021-03-13 03:17:30 +04:00
httpprocwatchd.service Now service will restart if program fails. 2021-03-13 16:36:14 +04:00
main.go Initial commit. 2021-03-13 03:17:30 +04:00
Makefile Initial commit. 2021-03-13 03:17:30 +04:00
README.md Initial commit. 2021-03-13 03:17:30 +04:00

httpprocwatchd

It is a process watcher that gives processes' statuses in a JSON format via HTTP GET request on /processes endpoint.

A JSON object looks like this: { "<process name>":<true|false>, ... }.

A configuration file is in JSON format as well. There are two options: 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.