Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-22 Thread Michal Koutný
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

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-22 Thread Ani A
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

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-14 Thread Michal Koutný
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

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-14 Thread Ani A
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

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-12 Thread Michal Koutný
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

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-12 Thread Ani A
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

Re: [systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-12 Thread Michal Koutný
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

[systemd-devel] Regarding service rate limiting (systemd 237)

2022-07-11 Thread Ani A
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