summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-08 12:54:09 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-08 12:54:09 +0200
commit185bc5f8e1bacb43cfd7f0fa555aa61577157602 (patch)
tree61759915e4eb1dcad4a3114992e7c9b323668c4a /action.h
parentb808c2524f690a454ed723a32dd929270d2445b5 (diff)
downloadrsyslog-185bc5f8e1bacb43cfd7f0fa555aa61577157602.tar.gz
rsyslog-185bc5f8e1bacb43cfd7f0fa555aa61577157602.tar.xz
rsyslog-185bc5f8e1bacb43cfd7f0fa555aa61577157602.zip
implemented $ActionExecOnlyOnceEveryInterval config directive
Diffstat (limited to 'action.h')
-rw-r--r--action.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/action.h b/action.h
index 1fa05c15..99108aab 100644
--- a/action.h
+++ b/action.h
@@ -39,8 +39,10 @@ extern int glbliActionResumeRetryCount;
/* the following struct defines the action object data structure
*/
struct action_s {
- time_t f_time; /* time this was last written */
+ time_t f_time; /* used for "message repeated n times" - be careful, old, old code */
+ time_t tLastExec; /* time this action was last executed */
int bExecWhenPrevSusp;/* execute only when previous action is suspended? */
+ int iSecsExecOnceInterval; /* if non-zero, minimum seconds to wait until action is executed again */
short bEnabled; /* is the related action enabled (1) or disabled (0)? */
short bSuspended; /* is the related action temporarily suspended? */
time_t ttResumeRtry; /* when is it time to retry the resume? */