Use os.Exit(0) instead of just return from main. StoreConfiguration moved out Add/RemoveProcess methods.
|3 weeks ago|
|contrib||3 weeks ago|
|.gitignore||3 weeks ago|
|LICENSE||4 weeks ago|
|Makefile||3 weeks ago|
|README.md||3 weeks ago|
|configuration.go||3 weeks ago|
|errors.go||3 weeks ago|
|go.mod||11 months ago|
|main.go||3 weeks ago|
|processlist.go||3 weeks ago|
|server.go||3 weeks ago|
|util.go||3 weeks ago|
httpprocwatchd Ver 1.3.2
This utility provides a HTTP
/processes GET endpoint that returns a list of
processes, and if they are currently running or not.
There are currently three output formats available: JSON, XML, plain text.
JSON is a default format if
Accept header didn't provided, or did do with
application/json. Its form is
XML is provided if
Accept: application/xml header was given. Its form is
Plain text is provided if
Accept: text/plain header was given. Its form is a
comma separated list of ONLY running process' names.
Configuration file is a simple key = value storage consisting of
field in form
indented_output bool in form
enable indentation of JSON and XML output. And
processes is a space separated array
of process names.
Run these commands one after the other.
$ make $ make install $ make install-service
In order to uninstall run these commands:
# systemctl stop httpprocwatchd # systemctl disable httpprocwatchd $ make uninstall-service $ make uninstall # systemctl daemon-reload
You can take a PKGBUILD file and in a directory with it run