Added a check for an empty process field. Also, added ability to leave just a process name that will be an alias simultaneously.Alexander "Arav" Andreev2023-12-16 02:22:27 +04:00
process.go was renamed to process_unix.go and build tags for unix was added to it as well. That's to show that currently only unix and unix-like systems are supported.Alexander "Arav" Andreev2023-12-15 04:05:34 +04:00
Only short flags left. version() and printWatchedProcesses() funcs are removed and its body was moved in-place.Alexander "Arav" Andreev2022-10-10 00:18:17 +04:00
Program renamed. Version was changed to 2.0.0. Fixed typo. Corrected installation section and link to PKGBUILD.Alexander "Arav" Andreev2022-10-10 00:12:16 +04:00
util.go -> proc.go. ioutil.ReadDir -> os.ReadDir. Error handling for dir name convert to int. Added build flags to restrict it to UNIX-like OSs only.Alexander "Arav" Andreev2022-10-10 00:10:34 +04:00
Systemd service file was moved to init dir. Program renamed. Added all security tweaks used in other projects.Alexander "Arav" Andreev2022-10-10 00:06:35 +04:00
httpprocwatchd was renamed to httpprocprobed. Added -tags to make executable dynamic. Removed un/install-service targets. Modified paths to files.Alexander "Arav" Andreev2022-10-10 00:05:38 +04:00
[main.go] listWatchedProcesses -> print... . Moving it and version to bottom. Use os.Exit(0) instead of just return from main. StoreConfiguration moved out Add/RemoveProcess methods.Alexander "Arav" Andreev2022-01-06 03:24:57 +04:00
[util.go] Optimisation by comparing high part of byte to 3 (numbers in ASCII are going from 0x30 to 0x39). And convert the whole number only if it is PID we are looking for.Alexander "Arav" Andreev2022-01-06 03:22:38 +04:00
[server.go] Use switch statement by Accept header. Removing methods and directly making and appending to ProcessList.Alexander "Arav" Andreev2022-01-06 03:17:26 +04:00
[processlist.go] Removed NewProcessList and AddProcess funcs. Passing ProcessList to MarshalXML by pointer instead of value.Alexander "Arav" Andreev2022-01-06 03:15:28 +04:00
[configuration.go] append a list instead, in case there are multiple processes options. Removed StoreConfiguratuion from Add/RemoveProcess funcs, and shorten theirs names.Alexander "Arav" Andreev2022-01-06 03:13:52 +04:00
[util.go] It is better to see in a cmdline, rather than in comm. For example, matrix synapse in comm has just python3. So lets look in both comm and cmdline.Alexander "Arav" Andreev2022-01-03 01:10:15 +04:00
[util.go] It is better to see in a cmdline, rather than in comm. For example, matrix synapse in comm has just python3. So lets look in both comm and cmdline.Alexander "Arav" Andreev2022-01-03 01:08:52 +04:00
Code was restructurised again. Moved out back to root dir. Ditched JSON configuration file. Replaced with simple key = value format. Added indented_output option to format output with indent.Alexander "Arav" Andreev2022-01-02 21:30:56 +04:00
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.Alexander "Arav" Andreev2021-12-24 23:28:50 +04:00
[Makefile] $() -> ${}. Use install the right way. Make it ready for PKGBUILD using DESTDIR. Added clean target.Alexander "Arav" Andreev2021-12-24 21:17:36 +04:00
Added --add, --remove, and --list options to edit a list of processes in a configuration file. Implemented StoreConfiguration func to save changes back to a file. Changed version text.Alexander "Arav" Andreev2021-11-03 23:52:57 +04:00