dinit VS systemd

Compare dinit vs systemd and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
dinit systemd
21 518
531 12,516
- 1.6%
9.3 10.0
2 days ago 3 days ago
C++ C
Apache License 2.0 GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

dinit

Posts with mentions or reviews of dinit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-16.
  • Chimera Linux
    5 projects | news.ycombinator.com | 16 Dec 2023
    The author has a high-level overview doc here: https://github.com/davmac314/dinit/blob/master/doc/COMPARISO...

    Now, of course, with service management the devil is in the details, so before you use something as system-wide init, I find it useful to ask yourself: How do they restart services? Do they give up at some point? How do they notify administrators of failures? Do they detect crashloops? How configurable is the logger? What CLIs are there to debug the state of the system (which service was first to fail, where is its definition)? How to make ephemeral or parametrised services? How to add pre-start, post-start, pre-stop, post-stop hooks? Can you use environment variables in your commands, and where do they come from?

    I don't think you can find answers to some of these questions in docs. Once you do learn the answers, they may be disappointing - I indeed found myself quite disappointed in systemd after having to debug many failed-to-boot machines. With s6, I never run it, but there are few choices that raise eyebrows, e.g. the restart delay is hardcoded in source code to be 1 second. With dinit, I have yet to finish reading all its manpages, but at least timeout and restart policies are configurable.

  • Show HN: Dinit – specialized init for Docker containers
    2 projects | news.ycombinator.com | 9 Jul 2023
    Not to be confused with https://github.com/davmac314/dinit
  • are there any good reasons for me to avoid systemd
    2 projects | /r/linuxquestions | 5 Jun 2023
    Still, I applaud efforts like s6 and Dinit as competition is a good thing in general. I hope they'll continue to be improved upon until they've become viable alternatives to systemd for most users.
  • Gentoo 66 init or dinit
    2 projects | /r/Gentoo | 22 May 2023
    You can download dinit from github https://github.com/davmac314/dinit. (also read everything about it) Do a simple make && make install which should install it to /sbin/dinit No need to remove systemd or openrc. /sbin/init should be symlinked to whatever init system you use. Read the instructions on dinits page. All the services go into /etc/dinit.d. And you can "dinitctl enable servicename" to enable it. I threw the services I have on my system up at https://gitlab.com/fictitiousexistence-public/dinit-gentoo/ You can copy them and enable / disable whatever you need. Most services I jacked from artix since they have a supported instance of dinit.
  • A discussion about the Ultimate Linux Desktop
    5 projects | /r/linuxmasterrace | 13 May 2023
    It got mass-adopted while being imperfect, so that's to be expected. Thankfully its inception and the criticism that followed have paved the way for the likes of dinit and s6.
  • Which do you use systemd or openrc? Why do you use what you use?
    3 projects | /r/Gentoo | 21 Apr 2023
    this page by Davin McCall, creator of dinit.
  • Run a script when connection is established and ready?
    1 project | /r/Tailscale | 12 Apr 2023
    I use dinit do manage services on my home server. One of them is Caddy, that shares TLS/SSL cert state with my remote server by using Redis on said remote server. However, since this means that I need to have established a remote connection first before starting Caddy, I would like to know of a method to check if tailscale has in fact finished connecting.
  • Fastest way to boot Void Linux?
    2 projects | /r/voidlinux | 24 Mar 2023
    I've used a ton of improvements but I know this community knows a lot more about some parts than me. So here I come. I'm currently using efibootmgr to create an efistub to bypass grub. Using base-minimal with ncurses so terminal apps work. Also I use this in my /etc/dracut.conf.d/local.conf: hostonly="yes" omit_dracutmodules=" network plymouth " And that works perfectly. Don't know exactly what network or plymouth are for but they are not strictly required. Also I use dinit: void_dinit, dinit. This works perfectly fine and works like expected after a little troubleshooting. Also for making dinit about 2x faster is swapping coreutils to sbase. I only use ls from gnu coreutils which is something I may want to switch but I haven't come to finding a good alternative to ls that has colors (exa exists but is 11x as big) Things that I could think of that could improve stuff are: kernel, maybe initramfs. Maybe something else I've looked over. What is all made by GNU anyway? I may have forgot something Void Linux uses.
  • What do you guys think about this?
    2 projects | /r/linuxmasterrace | 18 Mar 2023
    systemd: Yes; it's awaiting its "PipeWire". Thankfully, the likes of s6 and dinit are very promising. Though I can actually appreciate that systemd is addressed. As ultimately it helps in raising awareness that will benefit whatever software will replace it eventually.
  • The (GNU/)Linux rabbit hole has been a negative influence on my mental state
    4 projects | /r/linux | 12 Mar 2023
    Arguably this is less troublesome to solve compared to the other concerns. As we're inevitably waiting for the system supervision suite that will be to systemd what PipeWire has been to PulseAudio. I'm very optimistic about this as both s6 and Dinit are shaping up lovely.

systemd

Posts with mentions or reviews of systemd. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-04.
  • PoC to demonstrate root permission hijacking by exploiting "systemd-run"
    2 projects | news.ycombinator.com | 4 May 2024
    No, the OP was not sent any harassment, the OP _did_ the harassment as it can be seen in the tweets. I mean, they are right there, just click on the links you shared. One of the OP's followers even openly called for the assassination of the project maintainer, and you have the galls to defend him? This is truly deranged stuff.

    And again, there is no "vulnerability", there is simply a person that doesn't know how Linux works and has learned something new. Which again it's fine, nobody knows everything and we all learn new things everyday, it's just that normal and sensible people don't use that to make grand claims on social media and start harassment campaigns culminating in death threats.

    Professional security researchers responsibly report real issues using the appropriate channels, such as defined at: https://github.com/systemd/systemd/security/policy this is not the work of a researcher, this is a grifter looking for self-promotion on social media.

  • Run0 – systemd based alternative to sudo announced
    5 projects | news.ycombinator.com | 1 May 2024
    > 3. even `adduser` will not allow it by default

    5. useradd does allow it (as noted in a comment). 6. Local users are not the only source, there things like LDAP and AD.

    7. POSIX allows it:

    * https://github.com/systemd/systemd/issues/6237#issuecomment-...

  • Systemd Rolling Out "run0" As sudo Alternative
    2 projects | news.ycombinator.com | 30 Apr 2024
    > I for one love to type out 13 extra characters

    FWIW, systemd is normally pretty good at providing autocomplete suggestions, so even if you don't want to set up an alias you'll probably just have to type `--b ` to set it.

    > I wonder what random ASCII escape sequences we can send.

    According to the man page source[0]:

    > The color specified should be an ANSI X3.64 SGR background color, i.e. strings such as `40`, `41`, …, `47`, `48;2;…`, `48;5;…`

    and a link to the relevant Wikipedia page[1]. Given systemd's generally decent track record wrt defects and security issues, and the simplicity of valid colour values, I expect there's a fairly robust parameter verifier in there.

    In fact, given the focus on starting the elevated command in a highly controlled environment, I'd expect the colour codes to be output to the originating terminal, not forwarded to the secure pty. That way, the only thing malformed escapes can affect is your own process, which you already have full control over anyway.

    (Happy to be shown if that's a mistaken expectation though.)

    [0] https://github.com/systemd/systemd/blob/main/man/run0.xml

    [1] https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_G...

  • Crash-only software: More than meets the eye
    1 project | news.ycombinator.com | 30 Apr 2024
  • Systemd Wants to Expand to Include a Sudo Replacement
    3 projects | news.ycombinator.com | 30 Apr 2024
    bash & zsh are supported by upstream: https://github.com/systemd/systemd/tree/main/shell-completio...
  • "Run0" as a Sudo Replacement
    3 projects | news.ycombinator.com | 30 Apr 2024
    the right person to replace sudo, not: https://github.com/systemd/systemd/issues/6237

    PS: https://pwnies.com/systemd-bugs/

  • Linux fu: getting started with systemd
    5 projects | news.ycombinator.com | 14 Apr 2024
    https://github.com/systemd/systemd/issues/32028#issuecomment...

    There are some very compelling arguments made there if you care to read them

  • Ubuntu 24.04 (and Debian) removed libsystemd from SSH server dependencies
    1 project | news.ycombinator.com | 13 Apr 2024
    Maybe it was because you weren't pointing out anything new?

    There was a pull request to stop linking libzma to systemd before the attack even took place

    https://github.com/systemd/systemd/pull/31550

    This was likely one of many things that pushed the attackers to work faster, and forced them into making mistakes.

  • Systemd minimizing required dependencies for libsystemd
    2 projects | news.ycombinator.com | 12 Apr 2024
    The PR for changing compression libraries to use dlopen() was opened several weeks before the xz-utils backdoor was revealed.

    https://github.com/systemd/systemd/pull/31550

  • Going in circles without a real-time clock
    6 projects | news.ycombinator.com | 10 Apr 2024

What are some alternatives?

When comparing dinit and systemd you can also consider the following projects:

s6 - The s6 supervision suite.

openrc - The OpenRC init system

init - KISS Linux - Init Framework

tini - A tiny but valid `init` for containers

InitKit - Neo-InitWare is a modular, cross-platform reimplementation of the systemd init system. It is experimental.

inotify-tools - inotify-tools is a C library and a set of command-line programs providing a simple interface to inotify.

smletsexchangeconnector - SMLets PowerShell based Exchange Connector for controlling Microsoft System Center Service Manager 2016+

minibase - small static userspace tools for Linux

earlyoom - earlyoom - Early OOM Daemon for Linux

runit_sv_addons - Three short add-on scripts for runit "sv"

supervisor - Supervisor process control system for Unix (supervisord)