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-12-24 23:28:50 +04:00
.gitignore [.gitignore] Let it suite this project already. 2021-12-24 21:11:22 +04:00
confguration.go Aside from JSON there is also XML available now. You need to provide an Accept: application/xml to get XML. Fixed removing from list, so it works now. Implemented reloading of list of procs by sending SIGHUP signal to process. Spread everything across multiple files for readability. 2021-12-24 23:28:50 +04:00
config.example.json [config.example.json] Let a list be empty, for user's convenience. 2021-12-24 21:10:00 +04:00
errors.go Aside from JSON there is also XML available now. You need to provide an Accept: application/xml to get XML. Fixed removing from list, so it works now. Implemented reloading of list of procs by sending SIGHUP signal to process. Spread everything across multiple files for readability. 2021-12-24 23:28:50 +04:00
go.mod Initial commit. 2021-03-13 03:17:30 +04:00
httpprocwatchd.service nobody user is replaced with more secure DynamicUser feature. 2021-11-03 23:38:29 +04:00
main.go Aside from JSON there is also XML available now. You need to provide an Accept: application/xml to get XML. Fixed removing from list, so it works now. Implemented reloading of list of procs by sending SIGHUP signal to process. Spread everything across multiple files for readability. 2021-12-24 23:28:50 +04:00
Makefile [Makefile] $() -> ${}. Use install the right way. Make it ready for PKGBUILD using DESTDIR. Added clean target. 2021-12-24 21:17:36 +04:00
processlist.go Aside from JSON there is also XML available now. You need to provide an Accept: application/xml to get XML. Fixed removing from list, so it works now. Implemented reloading of list of procs by sending SIGHUP signal to process. Spread everything across multiple files for readability. 2021-12-24 23:28:50 +04:00
README.md Initial commit. 2021-03-13 03:17:30 +04:00
server.go Aside from JSON there is also XML available now. You need to provide an Accept: application/xml to get XML. Fixed removing from list, so it works now. Implemented reloading of list of procs by sending SIGHUP signal to process. Spread everything across multiple files for readability. 2021-12-24 23:28:50 +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.