HTTP service that returns a JSON object of process' names with boolean values that respectively telling us if process is running or not.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Alexander Andreev 2b9774cbff
Now service will restart if program fails.
1 month ago
.gitignore Initial commit. 1 month ago
Makefile Initial commit. 1 month ago
README.md Initial commit. 1 month ago
config.example.json Initial commit. 1 month ago
go.mod Initial commit. 1 month ago
httpprocwatchd.service Now service will restart if program fails. 1 month ago
main.go Initial commit. 1 month ago

README.md

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.