diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-08 12:54:09 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-08 12:54:09 +0200 |
commit | 185bc5f8e1bacb43cfd7f0fa555aa61577157602 (patch) | |
tree | 61759915e4eb1dcad4a3114992e7c9b323668c4a /action.h | |
parent | b808c2524f690a454ed723a32dd929270d2445b5 (diff) | |
download | rsyslog-185bc5f8e1bacb43cfd7f0fa555aa61577157602.tar.gz rsyslog-185bc5f8e1bacb43cfd7f0fa555aa61577157602.tar.xz rsyslog-185bc5f8e1bacb43cfd7f0fa555aa61577157602.zip |
implemented $ActionExecOnlyOnceEveryInterval config directive
Diffstat (limited to 'action.h')
-rw-r--r-- | action.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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? */ |