Alexander Andreev
|
7c72851554
|
[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.
|
7 months ago |
Alexander Andreev
|
316c932ac2
|
[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.
|
7 months ago |
Alexander Andreev
|
a67ecc9c3d
|
[server.go] Use switch statement by Accept header.
Removing methods and directly making and appending to ProcessList.
|
7 months ago |
Alexander Andreev
|
006b832574
|
[processlist.go] Removed NewProcessList and AddProcess funcs.
Passing ProcessList to MarshalXML by pointer instead of value.
|
7 months ago |
Alexander Andreev
|
e19d69b845
|
[configuration.go] append a list instead, in case there are multiple processes options.
Removed StoreConfiguratuion from Add/RemoveProcess funcs, and shorten theirs names.
|
7 months ago |
Alexander Andreev
|
c0407cb4d6
|
[README.md] Added Instalation section.
|
7 months ago |
Alexander Andreev
|
33cebee08f
|
[util.go] It is better to leave just cmdline actually.
|
7 months ago |
Alexander Andreev
|
cf300b899a
|
[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.
|
7 months ago |
Alexander Andreev
|
16a60ae504
|
[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.
|
7 months ago |
Alexander Andreev
|
f536435ab0
|
[httpprocwatchd.service] Shorten Description. Fixed extension of config file.
|
7 months ago |
Alexander Andreev
|
4006dd89ea
|
[Makefile] Update.
|
7 months ago |
Alexander Andreev
|
2e3d95da81
|
[Makefile] Update.
|
7 months ago |
Alexander Andreev
|
6e3d38b084
|
[PKGBUILD] Update.
|
7 months ago |
Alexander Andreev
|
5ef2d85eac
|
[Makefile] Updated.
|
7 months ago |
Alexander Andreev
|
7f9e3bbc66
|
[PKGBUILD] Added makedepends.
|
7 months ago |
Alexander Andreev
|
791b48e043
|
[Makefile] Removed daemon-reload. Use right way to get path to systemd services.
|
7 months ago |
Alexander Andreev
|
bab45695d6
|
[Makefile] Fixed config extension.
|
7 months ago |
Alexander Andreev
|
a3c48bde52
|
Updated version to 1.3.2.
|
7 months ago |
Alexander Andreev
|
e1b8fbf280
|
Updated README.
|
7 months ago |
Alexander Andreev
|
2e81cf3950
|
[server.go] Added text/plain output.
|
7 months ago |
Alexander Andreev
|
9a8d30e69c
|
Fixed a typo in a name offile configuration.go.
|
7 months ago |
Alexander Andreev
|
d5ae05f0e5
|
Delete old json config file.
|
7 months ago |
Alexander Andreev
|
73c73c4483
|
Set version in PKGBUILD.
|
7 months ago |
Alexander Andreev
|
189554ace1
|
Added configuration example file.
|
7 months ago |
Alexander Andreev
|
dc0e4f27e0
|
[Makefile] Updated wildcard.
|
7 months ago |
Alexander Andreev
|
17b500ad92
|
[.gitignore] .json replaced with conf.
|
7 months ago |
Alexander Andreev
|
78db11ed69
|
Updated version to 1.3.1.
|
7 months ago |
Alexander Andreev
|
c7fe073623
|
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.
|
7 months ago |
Alexander Andreev
|
b1c3066d4c
|
Now also store a copy of license when installing.
|
7 months ago |
Alexander Andreev
|
8dac26b2bb
|
Removed check for pgrep. IsProcessUP replaced by GetProcessPIDs.
|
7 months ago |
Alexander Andreev
|
4837a8b66e
|
We use pgrep no more, so no need in this error.
|
7 months ago |
Alexander Andreev
|
299e353c94
|
IsProcessUp deleted and was replaced by GetProcessPIDs.
|
7 months ago |
Alexander Andreev
|
98bb98ffed
|
IsProcessUp was ditched in favor of GetProcessPIDs.
|
7 months ago |
Alexander Andreev
|
89cf72df26
|
Added license notice to README.
|
7 months ago |
Alexander Andreev
|
d596cc0c48
|
Updated Makefile to watch all source files.
|
7 months ago |
Alexander Andreev
|
d392a3b0b8
|
Wrote own function to get process pids. Ditching pgrep.
|
7 months ago |
Alexander Andreev
|
d96efaba73
|
Updated version to 1.3.
|
7 months ago |
Alexander Andreev
|
10e23fcb6e
|
License is switched to MIT+NIGGER. :)
|
7 months ago |
Alexander Andreev
|
fb627f68ba
|
Paths edited in Makefile.
|
7 months ago |
Alexander Andreev
|
8a552e13c9
|
Moving aux files into contrib dir. Added PKGBULD for Archlinux.
|
7 months ago |
Alexander Andreev
|
0c8dc36697
|
Moving other source code files into prog package. Renaming processes.json to config.json.
|
7 months ago |
Alexander Andreev
|
82ecb23a62
|
Updated README.
|
8 months ago |
Alexander Andreev
|
d9087102fd
|
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.
|
8 months ago |
Alexander Andreev
|
e559b11b08
|
[Makefile] $() -> ${}. Use `install` the right way. Make it ready for PKGBUILD using DESTDIR. Added clean target.
|
8 months ago |
Alexander Andreev
|
230034da27
|
[.gitignore] Let it suite this project already.
|
8 months ago |
Alexander Andreev
|
7158d82102
|
[config.example.json] Let a list be empty, for user's convenience.
|
8 months ago |
Alexander Andreev
|
e594c0024f
|
Formatting fixing.
|
9 months ago |
Alexander Andreev
|
4ed4b466b0
|
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.
|
9 months ago |
Alexander Andreev
|
2516cca24e
|
nobody user is replaced with more secure DynamicUser feature.
|
9 months ago |
Alexander Andreev
|
2b9774cbff
|
Now service will restart if program fails.
|
1 year ago |