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:
11
bootstrap.sh
Normal file
11
bootstrap.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Защита от дурака
|
||||
if [[ -z $HOME ]]; then
|
||||
echo "HOME variable is not defined, please set it up and re-run bootstrap script"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cpanm --installdeps --local-lib "$HOME/perl5"
|
||||
|
||||
# vim: set ft=sh noet ai ts=4 sw=4 sts=4:
|
||||
Reference in New Issue
Block a user