1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00
The systemd System and Service Manager
Go to file
Lennart Poettering 2bec84e7a5 core: add new "PollLimit" settings to .socket units
This adds a new "PollLimit" pair of settings to .socket units, very
similar to existing "TriggerLimit" logic. The differences are:

* PollLimit focusses on the polling on the sockets, and pauses that
  temporarily if a ratelimit on that is reached. TriggerLimit otoh
  focusses on the triggering effect of socket units, and stops
  triggering once the ratelimit is hit.

* While the trigger limit being hit is an action that causes the socket
  unit to fail the polling limit being reached will just temporarily
  disable polling on the socket fd, and it is resumed once the ratelimit
  interval is over.

* When a socket unit operates on multiple socket fds (e,g, ListenStream=
  on both some ipv6 and an ipv4 address or so). Then the PollLimit will
  be specific to each fd, while the trigger limit is specific to the
  whole unit.

Implementation-wise this is mostly a wrapper around sd-event's
sd_event_source_set_ratelimit(), which exposes the desired behaviour
directly.

Usecase for all of this: socket services which when overloaded with
connections should just slow down reception of it, but not fail
persistently.
2023-09-18 18:55:19 +02:00
.clusterfuzzlite ci: unpin CFLite 2022-04-26 09:13:57 +00:00
.github mkosi: Conditionally use tools tree 2023-09-09 15:53:26 +02:00
.semaphore test: use 'until' instead of 'while !' 2023-09-06 19:54:29 +01:00
catalog systemd.catalog: freezed -> froze 2023-09-05 12:57:28 +08:00
coccinelle tree-wide: use cocinnelle to apply _NEG_ macros 2023-08-16 12:52:56 +02:00
docs doc: add a markdown doc giving an overview over the fdstore 2023-09-18 14:47:07 +02:00
factory vconsole: allow setting default keymap through build option 2023-02-15 20:00:51 +00:00
hwdb.d hwdb: Add quirk for teclast x3 plus (G4K3) rotation (#29202) 2023-09-18 17:38:56 +09:00
LICENSES LICENSES/README.md: fix syntax 2023-07-08 22:33:53 +00:00
man core: add new "PollLimit" settings to .socket units 2023-09-18 18:55:19 +02:00
mkosi.conf.d mkosi: Conditionally use tools tree 2023-09-09 15:53:26 +02:00
mkosi.presets Revert "mkosi: pin CentOS9 kernel to working version" 2023-09-13 23:22:52 +02:00
modprobe.d meson: install the right README file in modprobe.d 2021-07-07 14:52:05 +02:00
network meson: use install_emptydir() and drop meson-make-symlink.sh 2023-08-08 22:11:34 +01:00
po po: Translated using Weblate (Russian) 2023-09-13 00:32:12 +08:00
presets preset: enable systemd-networkd-wait-online.service by default 2023-06-07 21:51:37 +01:00
rules.d 99-systemd.rules.in: tag PTP devices with systemd 2023-08-28 10:42:27 +01:00
shell-completion zsh: busctl: fix flags parsing for properties 2023-09-09 01:28:07 +01:00
src core: add new "PollLimit" settings to .socket units 2023-09-18 18:55:19 +02:00
sysctl.d meson: use install_emptydir() and drop meson-make-symlink.sh 2023-08-08 22:11:34 +01:00
sysusers.d sysusers.d: create the user for systemd-journal-upload.service 2023-06-19 23:42:00 +02:00
test meson: fix TODO regarding next meson version 2023-09-18 12:34:14 +01:00
tmpfiles.d Revert "Revert "tmpfiles.d: adjust /dev/vfio/vfio access mode"" 2023-08-09 11:27:39 +09:00
tools meson: restore tools/meson-vcs-tag.sh 2023-09-18 14:37:09 +02:00
units units: order battery-check before hibernate-resume 2023-09-07 20:21:16 +08:00
xorg xorg/50-systemd-user: add a full license header 2021-10-01 14:45:00 +02:00
.clang-format clang-format: Adjust style of pointers 2022-05-30 04:00:54 +09:00
.ctags editors: Prevent ctags from following symlinks 2019-02-15 11:01:20 -08:00
.dir-locals.el scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
.editorconfig mkosi: Use 4 space indentation for scripts 2023-02-21 14:22:52 +01:00
.gitattributes Mark all base64 files as generated 2023-08-16 12:49:45 +02:00
.gitignore mkosi: Update .gitignore to account for changed output locations 2023-05-12 11:38:02 +02:00
.mailmap mailmap: "reduce contributor count by 13" 2023-08-16 12:49:42 +02:00
.packit.yml Revert "ci: temporarily disable Packit's i386" 2023-09-17 22:18:49 +02:00
.pylintrc Add .pylintrc to globally suppress warnings we don't really care about 2023-08-10 18:13:29 +02:00
.vimrc vimrc: explicitly set shiftwidth for the C file type 2023-09-18 13:11:45 +02:00
.ycm_extra_conf.py ycm: add doc string for all the functions in configuration file 2017-11-29 13:21:49 -07:00
configure configure: update meson invocation 2023-07-29 14:08:06 +02:00
LICENSE.GPL2 relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
LICENSE.LGPL2.1 licence: remove references to old FSF address 2012-12-17 11:41:31 +01:00
Makefile tree-wide: add spdx header on all scripts and helpers 2021-01-28 09:55:35 +01:00
meson_options.txt meson: Drop skip-deps option 2023-08-23 14:57:49 +02:00
meson.build meson: restore tools/meson-vcs-tag.sh 2023-09-18 14:37:09 +02:00
mkosi.kernel.config mkosi: Don't disable CONFIG_USB 2023-09-06 12:58:30 +02:00
NEWS core,systemctl: refuse switching root if we're not in initrd 2023-09-02 15:56:24 +08:00
README Drop split-usr and unmerged-usr support 2023-07-28 19:34:03 +01:00
README.md Update badge on README to refer new scorecard viewer (#28050) 2023-06-15 19:24:32 +01:00
TODO update TODO 2023-09-18 16:21:13 +02:00

Systemd

System and Service Manager

Semaphore CI 2.0 Build Status
Coverity Scan Status
OSS-Fuzz Status
CIFuzz
CII Best Practices
CentOS CI - CentOS 8
CentOS CI - Arch
CentOS CI - Arch (sanitizers)
Fossies codespell report
Weblate
Coverage Status
Packaging status
OpenSSF Scorecard

Details

Most documentation is available on systemd's web site.

Assorted, older, general information about systemd can be found in the systemd Wiki.

Information about build requirements is provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the Code Map for information about this repository's layout and content.

Please see the Hacking guide for information on how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.