I configured the service - calc_mem.service
as the following
Restart=on-failure
RestartSec=5
StartLimitInterval=400
StartLimitBurst=3
the configuration above should do the following
the service have 3 retries when service exit with error and before service start it will wait 5 seconds
also we want to update the /var/log/message
about any retry from the service
for example
lets say we start the service , and service fail so it will try the first try , and on the first try service successfully started
is it possible to write the fail of service start to /var/log/message
?
note - we have redhat Linux machine version - 7.2