chiark / gitweb /
ratelimit start requests
[elogind.git] / service.h
index f9dbfea5e68325cf344a4c09db2a00d3d89a3de0..38b5438d4e2b4c4cc2a4d20b448dc418204dcfc6 100644 (file)
--- a/service.h
+++ b/service.h
@@ -6,6 +6,7 @@
 typedef struct Service Service;
 
 #include "unit.h"
+#include "ratelimit.h"
 
 typedef enum ServiceState {
         SERVICE_DEAD,
@@ -71,6 +72,8 @@ struct Service {
 
         bool failure:1; /* if we shut down, remember why */
         Watch timer_watch;
+
+        RateLimit ratelimit;
 };
 
 const UnitVTable service_vtable;