On Fri, Jul 22, 2022 at 06:14:11PM +0530, Ani A wrote:
> Found the issue, posting here to close this thread (and possibly help
> someone who might land in this situation!)
Thanks for sharing.
> The daemon which had issues with rate-limit, was invoking some
> `systemctl stop/start `
> commands
Hi Michal,
Found the issue, posting here to close this thread (and possibly help
someone who might land in this situation!)
The daemon which had issues with rate-limit, was invoking some
`systemctl stop/start `
commands in its initialization! (probably this has some unwanted side effects?)
If I
Hello.
On Thu, Jul 14, 2022 at 09:29:37PM +0530, Ani A wrote:
> StartLimitIntervalUSec=5min 20s
> StartLimitBurst=5
> StartLimitAction=none
>
> The time is sufficient for 5 restarts, but still daemon keeps restarting!
>
> Scheduled restart job, restart counter is at 6
If the 5
Hi Michal,
>> systemctl show $UNIT | grep -E
>> "StartLimit.*|InactiveExitTimestamp|ActiveEnterTimestamp"
This is the output from unit show :
InactiveExitTimestamp=Thu 2022-07-14 21:19:16 IST
InactiveExitTimestampMonotonic=3181663063
ActiveEnterTimestamp=Thu 2022-07-14 21:19:16 IST
On Tue, Jul 12, 2022 at 03:36:55PM +0530, Ani A wrote:
> Demo services work fine, the actual service is quite heavy and takes
> time to startup.
>
> > you may not reach the sufficient fail rate for start limit to kick
> I didn't get this part.
I meant that your values might have corresponded to
Hi Michal,
>Does your service crash later than the demo service terminates?
Demo services work fine, the actual service is quite heavy and takes
time to startup.
> you may not reach the sufficient fail rate for start limit to kick
I didn't get this part. Say the daemon takes 60s to startup and
Hi.
On Mon, Jul 11, 2022 at 06:26:44PM +0530, Ani A wrote:
> but somehow only with the services that I am trying to rate-limit
> (C,unix daemons), it doesn't work! :(
Does your service crash later than the demo service terminates?
(I.e. you may not reach the sufficient fail rate for start limit
Hello,
I am on Ubuntu 18.04 (systemd version 237), I have been trying to get
service rate limiting to work, but not getting it right!
I checked/tested many examples with the same directives that I use in
my service files, they all work well (for e.g.)
cat < /usr/local/bin/myservice.sh