-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathkillprocess.config
More file actions
32 lines (24 loc) · 905 Bytes
/
killprocess.config
File metadata and controls
32 lines (24 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# local config file template used by killprocess.sh,
# USAGE:
# rename this file killprocess.config and set your vars.
# killprocess.config is excluded from git
#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=10
#max execution time for CPU percentage > MAX_CPU (in seconds 7200s=2h)
MAX_SEC=180
#max execution time for any %CPU (in seconds 2700s=45min)
MAX_SEC2=270
#MAX_RAM in Kilobytes ex.: 250MB = 250*1024 = 256000 kb, 350MB=358400)
MAX_RAM=358400
#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
#and your line is too long, set the right columns number here.
#leave empty string "" for default columns environment.
COLSNUM=""