Implemented commandline params, updated README.md, added cpanfile, fixed couple of bugs

- Use Proc::Find instead of ps utility
- Use builtin kill instead of commandline utility
- Use setpriority instead of renice utility
- Implemented config parameter loopdelay
- Implemented config parameter cmddelay
- Implemented commandline parameter --config
- Added --help parameter
- Implemented commandline parameter --pidfile
- Added cpanfile and bootstrap.sh to bootstrap this daemon
- Optimized algo - do not send signals to already "signaled" processes, do not ionice already ioniced pids
This commit is contained in:
eleksir
2023-05-01 16:33:27 +03:00
parent 4229e2f914
commit 3082dd2add
5 changed files with 217 additions and 91 deletions

10
cpanfile Normal file
View File

@@ -0,0 +1,10 @@
## no critic
# Почему-то perlcritic пытается критиковать и cpanfile тоже, хотя он к перловым программам и либам не относится.
# Проставим версии зависимостей в то, что по идее должно работать с текущим перлом. Типа "как у взрослых".
requires Encode, '>=3.19';
requires Getopt::Long, '>=2.54';
requires JSON::XS, '>=4.03';
# Built-in perl distribution
requires POSIX, '0';
requires Proc::Find, '>=0.051';
requires Time::HiRes, '>=1.9764';