1
0
Commit Graph

52 Commits

Author SHA1 Message Date
5afebfe882
Added executable to .gitignore. 2022-10-10 00:03:40 +04:00
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.
2022-01-06 03:24:57 +04:00
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. 2022-01-06 03:22:38 +04:00
a67ecc9c3d
[server.go] Use switch statement by Accept header.
Removing methods and directly making and appending to ProcessList.
2022-01-06 03:17:26 +04:00
006b832574
[processlist.go] Removed NewProcessList and AddProcess funcs.
Passing ProcessList to MarshalXML by pointer instead of value.
2022-01-06 03:15:28 +04:00
e19d69b845
[configuration.go] append a list instead, in case there are multiple processes options.
Removed StoreConfiguratuion from Add/RemoveProcess funcs, and shorten theirs names.
2022-01-06 03:13:52 +04:00
c0407cb4d6
[README.md] Added Instalation section. 2022-01-03 02:22:41 +04:00
33cebee08f
[util.go] It is better to leave just cmdline actually. 2022-01-03 01:35:51 +04:00
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.
2022-01-03 01:10:15 +04:00
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.
2022-01-03 01:08:52 +04:00
f536435ab0
[httpprocwatchd.service] Shorten Description. Fixed extension of config file. 2022-01-03 01:04:49 +04:00
4006dd89ea
[Makefile] Update. 2022-01-02 23:05:39 +04:00
2e3d95da81
[Makefile] Update. 2022-01-02 23:03:50 +04:00
6e3d38b084
[PKGBUILD] Update. 2022-01-02 22:59:42 +04:00
5ef2d85eac
[Makefile] Updated. 2022-01-02 22:52:22 +04:00
7f9e3bbc66
[PKGBUILD] Added makedepends. 2022-01-02 22:40:35 +04:00
791b48e043
[Makefile] Removed daemon-reload. Use right way to get path to systemd services. 2022-01-02 22:40:07 +04:00
bab45695d6
[Makefile] Fixed config extension. 2022-01-02 22:05:18 +04:00
a3c48bde52
Updated version to 1.3.2. 2022-01-02 21:57:32 +04:00
e1b8fbf280
Updated README. 2022-01-02 21:56:53 +04:00
2e81cf3950
[server.go] Added text/plain output. 2022-01-02 21:56:35 +04:00
9a8d30e69c
Fixed a typo in a name offile configuration.go. 2022-01-02 21:35:11 +04:00
d5ae05f0e5
Delete old json config file. 2022-01-02 21:33:21 +04:00
73c73c4483
Set version in PKGBUILD. 2022-01-02 21:33:08 +04:00
189554ace1
Added configuration example file. 2022-01-02 21:32:53 +04:00
dc0e4f27e0
[Makefile] Updated wildcard. 2022-01-02 21:32:34 +04:00
17b500ad92
[.gitignore] .json replaced with conf. 2022-01-02 21:32:12 +04:00
78db11ed69
Updated version to 1.3.1. 2022-01-02 21:31:42 +04:00
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.
2022-01-02 21:30:56 +04:00
b1c3066d4c
Now also store a copy of license when installing. 2022-01-02 05:32:00 +04:00
8dac26b2bb
Removed check for pgrep. IsProcessUP replaced by GetProcessPIDs. 2022-01-02 05:28:37 +04:00
4837a8b66e
We use pgrep no more, so no need in this error. 2022-01-02 05:27:52 +04:00
299e353c94
IsProcessUp deleted and was replaced by GetProcessPIDs. 2022-01-02 05:27:25 +04:00
98bb98ffed
IsProcessUp was ditched in favor of GetProcessPIDs. 2022-01-02 05:26:24 +04:00
89cf72df26
Added license notice to README. 2022-01-02 05:15:29 +04:00
d596cc0c48
Updated Makefile to watch all source files. 2022-01-02 05:14:52 +04:00
d392a3b0b8
Wrote own function to get process pids. Ditching pgrep. 2022-01-02 05:14:21 +04:00
d96efaba73
Updated version to 1.3. 2022-01-02 05:13:45 +04:00
10e23fcb6e
License is switched to MIT+NIGGER. :) 2022-01-02 05:13:20 +04:00
fb627f68ba
Paths edited in Makefile. 2022-01-02 02:58:24 +04:00
8a552e13c9
Moving aux files into contrib dir. Added PKGBULD for Archlinux. 2022-01-02 02:57:57 +04:00
0c8dc36697
Moving other source code files into prog package. Renaming processes.json to config.json. 2022-01-02 02:56:46 +04:00
82ecb23a62
Updated README. 2021-12-24 23:47:07 +04:00
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. 2021-12-24 23:28:50 +04:00
e559b11b08
[Makefile] $() -> ${}. Use install the right way. Make it ready for PKGBUILD using DESTDIR. Added clean target. 2021-12-24 21:17:36 +04:00
230034da27
[.gitignore] Let it suite this project already. 2021-12-24 21:11:22 +04:00
7158d82102
[config.example.json] Let a list be empty, for user's convenience. 2021-12-24 21:10:00 +04:00
e594c0024f
Formatting fixing. 2021-11-04 00:17:17 +04:00
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. 2021-11-03 23:52:57 +04:00
2516cca24e
nobody user is replaced with more secure DynamicUser feature. 2021-11-03 23:38:29 +04:00