diff options
author | June McEnroe <june@causal.agency> | 2020-08-15 18:25:40 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-15 18:25:40 -0400 |
commit | 497cafbf0f2e96c21539fcc65b149450de262be8 (patch) | |
tree | b464fc74478038c30562afc5f5cea9721c762aea /daemon.h | |
parent | Log when service name pattern doesn't match (diff) | |
download | catsit-497cafbf0f2e96c21539fcc65b149450de262be8.tar.gz catsit-497cafbf0f2e96c21539fcc65b149450de262be8.zip |
Add reset interval after which restart interval is reset
Diffstat (limited to '')
-rw-r--r-- | daemon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.h b/daemon.h index b8bcb9b..1ee3ea5 100644 --- a/daemon.h +++ b/daemon.h @@ -119,6 +119,7 @@ struct Service { int errPipe[2]; struct Line outLine; struct Line errLine; + struct timespec startTime; struct timespec restartInterval; struct timespec restartDeadline; }; @@ -156,3 +157,4 @@ static inline uint32_t setTest(const struct Set256 *set, byte x) { enum { StopExit = 127 }; extern struct Set256 stopExits; extern struct timespec restartInterval; +extern struct timespec resetInterval; |