Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kill-Process #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions killprocess.config.template → killprocess.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
# rename this file killprocess.config and set your vars.
# killprocess.config is excluded from git

#process command name to check
#process sysapps
KILLLIST=("/usr/sbin/apache2" "/usr/bin/php5-cgi")

#email (if empty no email will be sent)
EMAIL="noemail@nomail.com"

#max cpu % load
MAX_CPU=90
MAX_CPU=10

#max execution time for CPU percentage > MAX_CPU (in seconds 7200s=2h)
MAX_SEC=1800
MAX_SEC=180

#max execution time for any %CPU (in seconds 2700s=45min)
MAX_SEC2=2700
MAX_SEC2=270

#MAX_RAM in Kilobytes ex.: 250MB = 250*1024 = 256000 kb, 350MB=358400)
MAX_RAM=358400

#exclude root process (leave empty for match root process too)
EXCLUDE_ROOT="grep -v root"
#include root process (leave empty for match root process too)
INCLUDE_ROOT="grep -v root"

#set screen width
#if you command (specially if executed in cron) truncate columns to 80 less chars
Expand Down