1
0
Commit Graph

62 Commits

Author SHA1 Message Date
f16e747205
ProcessXMLEntry struct was made into an anonymous struct. 2022-10-10 00:12:45 +04:00
5f4555d769
Program renamed. Version was changed to 2.0.0. Fixed typo. Corrected installation section and link to PKGBUILD. 2022-10-10 00:12:16 +04:00
2477b7ac1e
server.go -> httpserver.go. 2022-10-10 00:11:17 +04:00
97a3a01053
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. 2022-10-10 00:10:34 +04:00
48c7c9a3ea
Config file moved to configs dir. 2022-10-10 00:08:48 +04:00
7c4c378508
WARN: -> [WARN]. ioutil.WriteFile changed to modern os.WriteFile. 2022-10-10 00:08:30 +04:00
c56ef45ed1
A new PKGBUILD. 2022-10-10 00:07:02 +04:00
9e72398daa
Systemd service file was moved to init dir. Program renamed. Added all security tweaks used in other projects. 2022-10-10 00:06:35 +04:00
992c46420c
httpprocwatchd was renamed to httpprocprobed. Added -tags to make executable dynamic. Removed un/install-service targets. Modified paths to files. 2022-10-10 00:05:38 +04:00
4b34ca3ff6
httpprocwatchd was renamed to httpprocprobed. And golang version updated to 1.19. 2022-10-10 00:04:24 +04:00
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