anthill / 6brain

0 stars 3 forks source link

6brain service can go in fail state if the restart is happening too quickly #69

Closed vallettea closed 8 years ago

vallettea commented 8 years ago

I noticed this when upgrading nodejs , the path was different so the unit file was wrong and thus the command was constantly failing leading to:

6brain.service start request repeated too quickly, refusing to start.

nothing bad normally because the node process takes time.

vallettea commented 8 years ago
currently if a restart fails due to ratelimiting we never try
again regardless whether Restart=always is set.

You have a point in wondering about this behaviour and we probably
should fix this to restart the service after the ratelimiting period is
over.
vallettea commented 8 years ago

this shouldn't be a problem is node is working. I guess the rate limit happens only when there is a very rapid shutdown of the command.