- 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
11 lines
253 B
Bash
11 lines
253 B
Bash
#!/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: |