Rate limited restart
authorTim Pepper <timothy.c.pepper@linux.intel.com>
Tue, 27 Nov 2012 22:19:08 +0000 (14:19 -0800)
committerTim Pepper <timothy.c.pepper@linux.intel.com>
Tue, 27 Nov 2012 22:19:08 +0000 (14:19 -0800)
Restart on error, up to 2 times in 5 minutes.

Signed-off-by: Tim Pepper <timothy.c.pepper@linux.intel.com>
src/corewatcher.service.in

index a261532..36d79d5 100644 (file)
@@ -6,6 +6,9 @@ After=sysinit.target
 [Service]
 Type=forking
 ExecStart=@prefix@/bin/corewatcher
+Restart=always
+StartLimitInterval=300
+StartLimitBurst=2
 
 [Install]
 WantedBy=multi-user.target