]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/execute.h
core: implement per unit journal rate limiting
[thirdparty/systemd.git] / src / core / execute.h
index 2e8b01f7695f97f9899e195a0187689cb62533b4..a2ed477ebf960312fe04f2b3c0bdb9ef54e1aedd 100644 (file)
@@ -107,7 +107,7 @@ struct ExecCommand {
  * between invocations of commands. This is a reference counted object, with one reference taken by each currently
  * active command invocation that wants to share this runtime. */
 struct ExecRuntime {
-        int n_ref;
+        unsigned n_ref;
 
         Manager *manager;
 
@@ -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;