mesosphere-backup / dcos-windows

Microsoft Windows support to DCOS
Apache License 2.0
12 stars 16 forks source link

Add log rotation to service failure #41

Closed aserdean closed 6 years ago

aserdean commented 6 years ago

Until now we only restarted the services upon their failures.

This patch introduces also log rotation for the subsequent failures (more than two failures) if the service has a log file specified.

I.E.: if the service has a log file specified (start)->restart_service->restart_service->log rotate/restart_service>log rotate/restart_service if the service does not have a log file specified (start)->restart_service->restart_service->restart_service>restart_service

Signed-off-by: Alin Gabriel Serdean aserdean@ovn.org