How to resolve "service start-limit-hit"
Solution 1:
Probably a more correct answer:
systemctl reset-failed servicename.service
Taken from https://serverfault.com/questions/930047/how-to-bypass-systemd-start-request-repeated-too-quickly
Solution 2:
Run
mkdir /var/run/sshd
then
systemctl restart ssh
:thumbsup:
DONE!
Solution 3:
When you have start-limit-hit
or Start request repeated too quickly
it may be due to a Restart=on-failure
directive in the service definition. Chances are, there is an initial reason for the error but it's hidden behind the one you see.
To find out: (obviously, replace carbon-relay-ng with your service)
- run
systemctl status carbon-relay-ng
- find the source where the service is loaded (first image)
nano /lib/systemd/system/carbon-relay-ng.service
- remove line
Restart=on-failure
and save file (second image) - run
systemctl restart carbon-relay-ng
- run
systemctl status carbon-relay-ng
to check real error
Real error
For me it revealed the following error which I had to correct by setting the file permissions: