summary refs log tree commit diff
path: root/daemon.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-15 18:25:40 -0400
committerJune McEnroe <june@causal.agency>2020-08-15 18:25:40 -0400
commit497cafbf0f2e96c21539fcc65b149450de262be8 (patch)
treeb464fc74478038c30562afc5f5cea9721c762aea /daemon.h
parentLog when service name pattern doesn't match (diff)
downloadcatsit-497cafbf0f2e96c21539fcc65b149450de262be8.tar.gz
catsit-497cafbf0f2e96c21539fcc65b149450de262be8.zip
Add reset interval after which restart interval is reset
Diffstat (limited to 'daemon.h')
-rw-r--r--daemon.h2
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;