Skip to content

etc: Fix start-limit parameters location in systemd units (ref #7439) - #7529

Merged
imsodin merged 1 commit into
syncthing:mainfrom
MichaIng:patch-1
Mar 28, 2021
Merged

imsodin merged 1 commit into
syncthing:mainfrom
MichaIng:patch-1

Conversation

@MichaIng

@MichaIng MichaIng commented Mar 28, 2021 •

Copy link
Copy Markdown
Contributor

Purpose

587c89d introduced a systemd unit based restart burst limit, but the directives have been added to the wrong section. StartLimitIntervalSec and StartLimitBurst need to be located in the [Unit] section of the systemd unit to be effective: https://www.freedesktop.org/software/systemd/man/systemd.unit.html#StartLimitIntervalSec=interval

Testing

To be true, I didn't test it, but the fact is trivial and well documented in the systemd documentation (see above), and it is a pretty common mistake as it's not intuitive with other restart-related directives being located in the [Service] section. Also it has changed with systemd v230, StartLimitInterval being renamed to StartLimitIntervalSec and both moved from [Service] to [Unit].

Authorship

Signed-off-by: MichaIng [email protected]

@imsodin

imsodin commented Mar 28, 2021

Copy link
Copy Markdown
Member

Thanks!

The same issue exists for the user service - could you fix that too please.

MichaIng added a commit to MichaIng/DietPi that referenced this pull request Mar 28, 2021
+ DietPi-Software | Syncthing: Failsafe: Assure that "dietpi" has permission to create the /mnt/dietpi_userdata/syncthing directory
+ DietPi-Software | Syncthing: Update systemd unit to include the restart burst protected that is about to be added upstream with v1.15: syncthing/syncthing#7529
+ DietPi-Software | Syncthing: Update fallback download and add G_EXEC error handler where applicable
@MichaIng

Copy link
Copy Markdown
Contributor Author

Thanks for the light-speed reaction 👍. Fix applied for the user service.

@imsodin imsodin changed the title Fix StartLimitIntervalSec/StartLimitBurst location in systemd unit etc: Fix start-limit parameters location in systemd units (ref #7439) Mar 28, 2021

@imsodin imsodin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the light-speed reaction +1. Fix applied for the user service.

I can re-assure you, I operate far away from light-speed safely in the classical regime :D

@imsodin
imsodin merged commit 3321271 into syncthing:main Mar 28, 2021
@MichaIng
MichaIng deleted the patch-1 branch March 28, 2021 12:34
calmh added a commit to calmh/syncthing that referenced this pull request Apr 5, 2021
* main: (36 commits)
  etc: Fix start-limit parameters location in systemd units (ref syncthing#7439) (syncthing#7529)
  gui: Add confirmation dialog for revert/override (fixes syncthing#7520) (syncthing#7522)
  readme: Larger link for Fitt's law, still semantic (syncthing#7523)
  gui, man, authors: Update docs, translations, and contributors
  lib/model: Reset conn when enc token is missing (fixes syncthing#7198) (syncthing#7518)
  lib: Handle adding enc folders on an existing conn (fixes syncthing#7509) (syncthing#7510)
  cmd/strelaysrv: Increase default strelaysrv network buffer size (fixes syncthing#7514) (syncthing#7517)
  lib/ur: Prevent panic when blocksResult is nil (ref syncthing#7495) (syncthing#7515)
  lib/model: Encrypted fileinfo trailer needs to be in wire format (syncthing#7505)
  lib/model: Error check in test (syncthing#7508)
  lib/osutil: Fix raising max FDs on macOS (syncthing#7507)
  lib/connections: Silence "connected to myself" messages. (syncthing#7500)
  lib/osutil: Remove unused code
  all: Simplify some method calls (syncthing#7499)
  cmd/uraggregate: Ignore errors harder (syncthing#7498)
  cmd/syncthing: Error handling on upgrade (syncthing#7497)
  Remove unnecessary guard around `delete` (syncthing#7496)
  all: Remove miscellaneous vestigial code (syncthing#7495)
  all: Remove crypto/md5 (syncthing#7493)
  lib/api: Missing error handling in API delete-device (syncthing#7494)
  ...
@calmh calmh added this to the v1.15.1 milestone Apr 6, 2021
greatroar pushed a commit to greatroar/syncthing that referenced this pull request May 8, 2021
@calmh calmh added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 11, 2022
@syncthing syncthing locked and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants