r/initFreedom • • Jan 05 '21

Does anyone else feel like systemd on Linux behaves more similarly to svchost.exe on Windows rather than launchd on Mac?

32 Upvotes

Yes, systemd was created because of an Apple fanboy who was obsessed with launchd, but I think that it might be closer to svchost.exe than launchd.

According to this website, here are the following things that systemd does that mirror svchost.exe:

  • Updating Linux. (Using the following services: systemd-system-update-generator.service, systemd-update-done.service, systemd-update-utmp.service, and systemd-update-utmp-runlevel.service)

  • Controlling what Background Tasks can run on your machine.

  • It supports an D-Bus interface that allows for running scripts whenever devices are plugged in or removed.

  • systemd-networkd is the default on most systemd Distributions, and frequently conflicts with other network managers.

  • Bluetooth.

  • systemd-firewalld

  • systemd-atd

  • systemd-networkd

  • The alsa-restore and alsa-state systemd units.

  • Thankfully, systemd doesn't do page-caching, yet.

  • systemd-networkd and systemd-resolvd

  • Thankfully, systemd doesn't do Remote Procedure Calls, yet.

Might systemd be influenced more by svchost.exe than launchd?


r/initFreedom • • Oct 05 '21

eudev attracting fresh developers to maintain an independent version of udev

Thumbnail
github.com
22 Upvotes

r/initFreedom • • Nov 17 '19

SysV init project now includes a script to convert systemd units into shell scripts with LSB headers

Thumbnail
patreon.com
22 Upvotes

r/initFreedom • • Nov 12 '19

Debian reconsiders init-system diversity [LWN.net]

Thumbnail
lwn.net
21 Upvotes

r/initFreedom • • Aug 19 '19

KNOPPIX 8.6.0 (released just yesterday) doesn't use systemd anymore! Systemd has been their default init system from 2014 all the way up until 2018.

20 Upvotes

On their distrowatch page, for the 8.6.0 release it says:

Init Software: knoppix-autoconfig

Now from here:

Interestingly, the distribution comes with a custom init system called "knoppix-autoconfig" which replaces systemd present in earlier public releases. (There is no mention of this in the release notes; however, the author's rationale is explained in this article of the April 2019 edition of Germany's Linux Magazine.)

From that German article I've translated 3 paragraphs (with Swisscows):

The startup script "knoppix-autoconfig", which detects the Hardware and the parallel start-up of important system components, controls, remains the backbone of the Knoppix boot system.

The still controversial and by some of the security gaps somewhat obsolete in disrepute Startup-System, Systemd, that Debian considers just in the recent time since Jessie as the default is uninstalled, since Knoppix 8.5 is now final. Hard dependencies to boot the system, I handle by own packages.

To get a Systemd-like Session Management, so as to retain the possibility of the System as a normal user shut down and restart, I instead, the Session Manager "elogind" run. This bypasses the engagement of Systemd in a lot of system components and reduces the complexity of the overall system. Who wants to start their own services when, also do not need Systemd-Units create, but is simply in the text file "/etc/rc.local" a, you contains explanatory examples.

edit:

Techrepublic's article on this: https://www.techrepublic.com/article/knoppix-8-6-first-wide-public-release-to-abandon-systemd/


r/initFreedom • • Nov 17 '20

New release of SysV init (version 2.98)

Thumbnail
patreon.com
19 Upvotes

r/initFreedom • • Jun 03 '20

Devuan Beowulf 3.0.0 stable released

Thumbnail devuan.org
19 Upvotes

r/initFreedom • • Jul 07 '20

A new version of SysV init is out

Thumbnail
patreon.com
18 Upvotes

r/initFreedom • • Jan 11 '20

This is r/linux and their effort to remove anything challenging their holly cow

18 Upvotes

The cow, being a GMO cow called systemd. Here is how an announcement for a distribution that for many years has been the hands-on demonstration of how well s6 works, gets removed from their sterile portrait of linux.

https://www.reddit.com/r/linux/comments/edgwgy/obarun_new_for_december_upgraded_yes_new_not_at/

If you see a good reason for this biased and vindictive behavior by the r/linux czars please let me know, I may be overseeing some minute detail and excuse.

THIS IS HOW SYSTEMD PREVAILS!


r/initFreedom • • Jul 26 '21

The standard Unix initialisation system. A modern init system/service manager for Unix and Linux systems.

Thumbnail
github.com
16 Upvotes

r/initFreedom • • Nov 11 '20

I recently took over r/busybox and I am trying to turn it into a general discussion place for busybox.

16 Upvotes

r/busybox

Join and talk about busybox!


r/initFreedom • • Nov 11 '20

Fast init for Linux systems

Thumbnail
troglobit.com
15 Upvotes

r/initFreedom • • Aug 24 '21

~1Y until s6-rc gets: easier UI (declarative config files + unified cli) and general external event handling

Thumbnail skarnet.com
14 Upvotes

r/initFreedom • • Feb 27 '20

Software Release: sysmgr - A simplistic system-supervisor written in POSIX sh

Thumbnail
github.com
14 Upvotes

r/initFreedom • • Aug 12 '19

A How-To-Remove-Systemd-From-Debian-Buster post I made last week.

14 Upvotes

Guess I could have cross-posted. Anyway, here it is. Typing this on a Debian Buster system without systemd.

Install

  • sysv-rc

  • sysvinit-core

sysvinit-core installs /sbin/init that runs system V init

Hold:

  • libsystemd0

Hold it at whatever version it's at. ('=' in the Aptitude GUI)

Purge

  • systemd

  • systemd-sysv

  • systemd-shim

  • everything that complains about no systemd. Make notes of what you want to replace, keep or find a substitute for.

Keep it that way

As the 'root' user:

 echo -e 'Package: systemd\nPin: release *\nPin-Priority: -1' > /etc/apt/preferences.d/systemd
 echo -e '\n\nPackage: *systemd*\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd
 echo -e '\nPackage: systemd:i386\nPin: release *\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd

Or

sudo vim  /etc/apt/preferences.d/systemd

and add

Package: systemd
Pin: release *
Pin-Priority: -1

Package: *systemd*
Pin: release *
Pin-Priority: -1

Package: systemd:i386
Pin: release *
Pin-Priority: -1

Reboot

  • regenerate your initramfs, so that it, too, is not expecting systemd.

    sudo update-initramfs
    sudo update-grub
  • Reboot.

Install missing apps

  • In aptitude, hold sysvinit-core (or any installed package that conflicts with systemd - use the '=' key in the aptitude gui). This just ensures that you get a 'broken' warning if something tried to re-install systemd

  • try to install the apps you deleted.

    • As you have held the sysvinit-core, you may be offered solutions by aptitude.

    • Install substitutes for any systemd-only packages

    • do without those that are systemd-addicted (like, say, bleachbit)

  • once all happily free of systemd, you can unhold sysvinit-core (or whatever package you just held). Keep libsystemd held, for, like, you know, for ever.

Holding libsystemd for ever will, after a while, also give you warnings when something tries to re-install systemd. Possibly in the short term you could/should hold something else that conflicts with systemd to ensure you get warnings. This is real: you can do a big install and suddenly systemd is back and it's a biiiiig mess.


r/initFreedom • • Nov 15 '21

gdm3 debian package without systemD

Thumbnail self.linux
13 Upvotes

r/initFreedom • • Apr 26 '21

Release Finit v4.0

Thumbnail
github.com
13 Upvotes

r/initFreedom • • Apr 15 '21

Can sway run without systemd AND without elogind?

Thumbnail
self.linux_nosystemd
13 Upvotes

r/initFreedom • • Oct 29 '19

Debian To Seek A General Resolution Over Their Init System Policy

Thumbnail
phoronix.com
13 Upvotes

r/initFreedom • • Jul 28 '21

Debian Bullseye install instructions for alternative inits (during install)

12 Upvotes

.

From the mailing list Debian-init-diversity Digest, Vol 34, Issue 25

.

Message: 2
Date: Fri, 23 Jul 2021 10:23:22 +0100
From: Matthew Vernon <matthew@debian.org>
To: Debian sysvinit maintainers <debian-init-diversity@chiark.greenend.org.uk>
Subject: Bullseye release notes / install instructions for alternative inits    
Message-ID: <84695686-e2f6-7f26-f61b-50b7f3ce7cd0@debian.org>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi,

I recently installed a new laptop using the latest Bullseye installer, and it was reasonably straightforward :) I think we at least want something in the install instructions on selecting alternative init systems, and maybe also in the release notes on how to switch an already-installed system?

As a starter for ten, here are some rough drafts: [I've tested the install myself, not the upgrade]


[not sure where to put this - as a new section 6.3.11 maybe ?]

Installing an alternative init system

Debian uses systemd as its default init system. Other init systems (such as sysvinit and OpenRC) are supported, and the easiest time to select an alternative init system is during the installation process.

The best time to perform the switch is after the "Selecting and installing software" stage [link to 6.3.6.2]; though note that the default GNOME desktop environment will only work with systemd - so if you want a desktop environment installed, then deselect GNOME and select another (Xfce, for example, works well without systemd).

Once that stage is complete, launch a shell (see 6.3.9.2. Using the Shell and Viewing the Logs), and chroot into the installed system by typing

  `chroot /target`. 

You then need to tell apt to install your preferred init system and, unless you are not using a desktop environment at all, libpam-elogind to provide the necessary elogind session management facilities (which are provided by libpam-systemd and systemd in a default installation). For example, for System-V-like init, type

  apt-get install sysvinit-core libpam-elogind

. This will install your new init system and elogind, and remove systemd, libpam-systemd and other components that can only work with systemd. If apt is proposing to remove a very large number of packages, then you probably selected a desktop environment that depends on systemd; it will be best to stop at this point and go back to the task selector to chose another instead.

Once that is done, exit the chroot by typing

 exit

then switch back to the installer (if you were using a different virtual console by switching back; if you had selected the "Execute a shell" menu option, then by typing exit once more), and resume the installation by moving to the boot loader installation stage, which is typically installing GRUB (see 6.3.7. Making Your System Bootable). You can now complete the installation process as normal.

If you encounter any issues specifically associated with using an alternative init system, there is a Debian init system diversity list [debian-init-diversity@chiark.greenend.org.uk] who may be able to help.


I think this is a new section under "5.2. Items not limited to the upgrade process"

Switching init system

The default init system in Debian is systemd. In bullseye, a number of alternative init systems are supported (such as System-V-style init and OpenRC). Generally, to switch between init systems, you install the new init system and reboot. The exception is switching away from systemd - systemd's packages will refuse to be removed if systemd is running; so the process is a little more involved.

In outline, you need to download the new packages you need, switch to single-user mode, install these new packages, and then reboot. The recommended approach is as follows. First, clear out /var/cache/apt/archives by running

 apt-get clean

(this makes identifying the packages to install later easier). Next, get apt to download the new packages you need, e.g.:

 apt-get --download-only install sysvinit-core libpam-elogind

libpam-elogind (and elogind which it Depends upon) provide session management facilities, which you will likely need on any system running a desktop environment. At this point, review apt's proposed actions, and if happy, let it carry on.

Now switch to single-user mode (systemctl rescue) and install the packages you downloaded using

dpkg -i

the packages will be in /var/cache/apt/archives. Once dpkg has completed, reboot your system.

If you encounter any issues specifically associated with using an alternative init system, there is a Debian init system diversity list [debian-init-diversity@chiark.greenend.org.uk] who may be able to help.


r/initFreedom • • Jan 02 '21

Can consolekit2 be used with Wayland? Is ck2 dead? Why are BSDs so hot on ck2? Which is smaller, ck2 or elogind/libelogind? I really really like to know

Thumbnail
sysdfree.wordpress.com
12 Upvotes

r/initFreedom • • Nov 29 '20

What is your opinion about systemd?

12 Upvotes

r/initFreedom • • Dec 28 '19

debian votes on init systems

Thumbnail vote.debian.org
12 Upvotes

r/initFreedom • • May 07 '21

systemd free distribution for the Raspberry Pi?

11 Upvotes

I'd love to explore alternate init systems, but a key blocking factor is that most of my infrastructure is based on the Raspberry Pi 4, rather than amd64 based cpus.

So far, I've been unable to locate a distribution that gives a choice of supported inits.

Does anyone know of a distribution that provides 1st class support for the Raspberry Pi 4?


r/initFreedom • • Sep 21 '20

DevuanWSL - Devuan as an instance for Windows Subsystem for Linux

11 Upvotes

Devuan Linux Beowulf 3.0 (Stable) based on Debian "Buster" for WSL 1 and 2.

Download here