C Init

Open-source C projects categorized as Init

Top 8 C Init Projects

  1. systemd

    The systemd System and Service Manager

    Project mention: C stdlib isn't threadsafe and even safe Rust didn't save us | news.ycombinator.com | 2025-01-22

    On Linux, a privileged process can change the memory address which the kernel (/proc filesystem) reads argv/etc from... prctl(PR_SET_MM) with the PR_SET_MM_ARG_START/PR_SET_MM_ARG_END arguments. Likewise, with PR_SET_MM_ENV_START/PR_SET_MM_ENV_END.

    The API is ugly, and since it needs CAP_SYS_RESOURCE many programs can't use it... but systemd does: https://github.com/systemd/systemd/blob/2635b5dc4a96157c2575...

    This shouldn't cause the kind of race conditions we are talking about here, since it isn't changing a single arg, it is changing the whole argv all at once. However, the fact that PR_SET_MM_ARG_START/PR_SET_MM_ARG_END are two separate prctl syscalls potentially introduces a different race condition. If Linux would only provide a prctl to set both at once, that would fix that. The reason it was done this way, is the API was originally designed for checkpoint-restore, in which case the process will be effectively suspended while these calls are made.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. tini

    A tiny but valid `init` for containers

    Project mention: Running tests in containers with docker-compose | dev.to | 2024-05-15

    FROM cimg/ruby:2.7.1 ARG TINI_VERSION=v0.19.0 RUN sudo apt-get update -qq \ && sudo apt-get install -yq --no-install-recommends \ libxml2-dev libxslt-dev libtool pkg-config \ libbz2-dev libglib2.0-dev libxml2-dev libxslt-dev cmake \ && sudo apt-get clean \ && sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ && sudo truncate -s 0 /var/log/*log ENV BUNDLE_JOBS=4 BUNDLE_RETRY=3 RUN gem update --system && gem install rake bundler --no-document ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/local/bin/tini RUN sudo chmod a+x /usr/local/bin/tini ENTRYPOINT ["/usr/local/bin/tini", "--"]

  4. s6

    The s6 supervision suite.

    Project mention: Way too many ways to wait on a child process with a timeout | news.ycombinator.com | 2024-11-11
  5. finit

    Fast init for Linux. Cookies included

  6. hummingbird

    Hummingbird init system for Linux based operating systems. (by Sweets)

  7. multirun

    A minimalist init process designed for Docker (by nicolas-van)

  8. InitWare

    The InitWare Suite of Middleware allows you to manage services and system resources as logical entities called units. Its main component is a service management ("init") system.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. fiss

    Friedel's Initialization and Service Supervision

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Init discussion

Log in or Post with

C Init related posts

  • The Motivation Behind Systemd

    2 projects | news.ycombinator.com | 20 Jan 2025
  • Systemd unit activation via dbus

    2 projects | dev.to | 29 Dec 2024
  • Way too many ways to wait on a child process with a timeout

    2 projects | news.ycombinator.com | 11 Nov 2024
  • Why systemd is a problem for embedded Linux

    6 projects | news.ycombinator.com | 3 Nov 2024
  • A Word about Systemd

    2 projects | news.ycombinator.com | 18 Sep 2024
  • S6 – skarnet's small supervision suite

    4 projects | news.ycombinator.com | 13 Sep 2024
  • Systemd: The Modern System and Service Manager for Linux

    1 project | news.ycombinator.com | 29 Aug 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 9 Feb 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Init projects in C? This list will help you:

# Project Stars
1 systemd 13,698
2 tini 10,087
3 s6 788
4 finit 640
5 hummingbird 253
6 multirun 191
7 InitWare 189
8 fiss 20

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C is
the 6th most popular programming language
based on number of references?