summaryrefslogtreecommitdiffstats
path: root/src/core/execute.h
diff options
context:
space:
mode:
authorAnita Zhang <anitzhang@gmail.com>2018-10-08 05:28:36 +0200
committerLennart Poettering <lennart@poettering.net>2018-10-18 09:56:20 +0200
commit90fc172e191f44979005a524521112f2bd1ff21b (patch)
treec7a62bfde5e0775425b209327d2be623a69ee8c5 /src/core/execute.h
parentresolve: set IP_RECVERR (diff)
downloadsystemd-90fc172e191f44979005a524521112f2bd1ff21b.tar.xz
systemd-90fc172e191f44979005a524521112f2bd1ff21b.zip
core: implement per unit journal rate limiting
Add LogRateLimitIntervalSec= and LogRateLimitBurst= options for services. If provided, these values get passed to the journald client context, and those values are used in the rate limiting function in the journal over the the journald.conf values. Part of #10230
Diffstat (limited to 'src/core/execute.h')
-rw-r--r--src/core/execute.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/execute.h b/src/core/execute.h
index 03a36e608c..a2ed477ebf 100644
--- a/src/core/execute.h
+++ b/src/core/execute.h
@@ -225,6 +225,9 @@ struct ExecContext {
struct iovec* log_extra_fields;
size_t n_log_extra_fields;
+ usec_t log_rate_limit_interval_usec;
+ unsigned log_rate_limit_burst;
+
bool cpu_sched_reset_on_fork;
bool non_blocking;
bool private_tmp;