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
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_serviceSigned-off-by: Alin Gabriel Serdean aserdean@ovn.org