17

I have installed Puppet Enterprise on CentOS 7. I can see that several Puppet services fail to start saying holdoff time over. What does this mean?

Sep 03 20:50:16 l-pm1 systemd[1]: pe-puppetdb.service holdoff time over, scheduling restart.
Sep 03 20:50:16 l-pm1 systemd[1]: Starting pe-puppetdb Service...
Priya R
  • 273
  • 1
  • 2
  • 4

1 Answers1

15

After a service stops (or fails to start), systemd waits for a short period of time before attempting to restart it.

The amount of wait time is configurable by setting RestartSec= in the unit.

RestartSec=

Configures the time to sleep before restarting a service (as configured with Restart=). Takes a unit-less value in seconds, or a time span value such as "5min 20s". Defaults to 100ms.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
  • 2
    Why should it stop? I've created a service, and see in the logs that it hits this error every 5 minutes or so, then it is logged to stop and start. I don't get why it should stop/start. Is it normal for a random service? – jayarjo Nov 26 '17 at 19:08
  • @jayarjo you are asking essentially "why would would software crash?" There are many possible causes. – Mark Stosberg Mar 26 '18 at 14:35