1
0
Commit Graph

95 Commits

Author SHA1 Message Date
ef99d71a1a
GetProcessPIDs was renamed to IsProcessRuns and now finds just first occurance of a process. 2024-07-07 17:23:21 +04:00
cb8f6b797a
Move "process" first in config.json. 2024-07-07 17:22:15 +04:00
77af8817fc
An AreProcessesUp func was turned into a lambda func. 2024-01-13 04:55:19 +04:00
37bc8b0f1b
Also moved a Configuration struct to main.go. 2024-01-13 04:42:19 +04:00
64b5966b48
Cause a proper server shutdown if a list reload fail by defering it. 2024-01-13 04:41:46 +04:00
99d53b31a0
Version was set to 3.1.1, and a year got incremented. 2024-01-13 04:22:34 +04:00
dd2614102e
PKGBUILD moved out to a build dir. 2024-01-13 04:18:57 +04:00
0cafa69cab
Print a version to stderr. 2024-01-13 04:03:29 +04:00
ffb401fd9b
Avoiding of junk in logs. 2024-01-13 04:02:56 +04:00
df3376bc69
A copyright has been moved to a next line. 2024-01-13 03:56:20 +04:00
37105a9c8a
A Process type and a GetProcessesState() func was moved to main.go. 2024-01-13 03:54:34 +04:00
4f6f018b54
Fixed a typo in a Makefile. 2023-12-16 02:34:10 +04:00
de180ef514
Version set to 3.1.0. 2023-12-16 02:22:46 +04:00
97439561ee
Added a check for an empty process field. Also, added ability to leave just a process name that will be an alias simultaneously. 2023-12-16 02:22:27 +04:00
fd0b2a145c
Found another typo in a Makefile. 2023-12-15 04:47:31 +04:00
6b47ea5a88
Fixed a typo in Makefile. 2023-12-15 04:44:33 +04:00
72284c299a
In PKGBUILD noextract=() was removed. Added CGO_* and custom GOPATH env vars. Also added PREFIX var. 2023-12-15 04:24:33 +04:00
8a6647f11a
Updated LICENSE, just year and an e-mail. 2023-12-15 04:23:12 +04:00
8855cd9121
Made make clean useful. 2023-12-15 04:11:13 +04:00
47fc30feeb
In systemd.service .conf was replaced with .json. Also changed description. 2023-12-15 04:10:00 +04:00
6ba2e8a471
Well, actually, let's move the platform-independent parts out to a process.go file. 2023-12-15 04:07:37 +04:00
e53bf0b77d
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. 2023-12-15 04:05:34 +04:00
e1f7dd81b6
Moved AreProcessesUp() handler to main.go. 2023-12-15 04:02:56 +04:00
df3714d071
Version 3.0.0. Throwed out everything not used but for whatever reason added previously. 2023-12-15 04:00:26 +04:00
3de964388a
A separate errors.go has no sense. 2023-02-04 20:48:07 +04:00
242fa48358
README update. 2023-02-04 20:45:43 +04:00
e5f20ea93a
Version was changed to 2.0.1. Description was changed. 2023-02-04 20:42:24 +04:00
cacbf0367f
Removed unused SYSCTL line from Makefile. 2023-02-04 20:36:18 +04:00
e8f4dc79c6
For no particular reason version of go was upped to 1.20. 2023-02-04 20:35:53 +04:00
59a30d5c93
In GetProcessPIDs() var pids was moved to return values. Added a comment. 2023-02-04 20:35:23 +04:00
620c9874c2
Added some more comments. 2023-02-04 20:33:26 +04:00
d0a19ff9aa
Fixed version in archive URL in PKGBUILD. 2022-10-10 00:31:54 +04:00
4cf95a18c0
Only short flags left. version() and printWatchedProcesses() funcs are removed and its body was moved in-place. 2022-10-10 00:18:17 +04:00
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