Trace: sysv_vs_systemd

Devuan vs Debian or SysV vs Systemd

Devuan vs Debian or SysV vs Systemd

I want to make a honest test to boot a Devuan with SysV and Debian with Systemd.

The scenario

Devuan 1.0 and Debian 8.8, all updated to latest packages with netinstall.

Two virtual machines with 1 vCPU and 1G of RAM:

The partition schema:

Packages installed:

The login screen Debian at left:

Packages installed and space used, Debian at left:

As you can see Debian used more space than Devuan and installed one more package.

Status of one service, Debian at left:

I prefer the output of systemd, but can be confused if you want to get the state in one script. I want to try boot the virtual machines at same time, so I installed NTP, the problem is that always I get a difference of 1 or 2 seconds.

I programmed a crontab in the servers and stay quiet until they reboot, the problem always was that one reboot before than other.

So I made a trick.

The trick

I want to boot on time the servers… so I add this line to crontab:

09 17 * * * echo $(date) > /root/inicio && /sbin/reboot

I want to eliminate human factor and network latency, so I removed NTP and configure tty1 to auto login.

Devuan

Modify the file /etc/inittab and comment/change the line:

1:2345:respawn:/sbin/getty 115200 tty1

To:

1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

Debian

Modify the file /etc/systemd/system/getty.service.wants/[email protected] and comment/change the line:

ExecStart=-/usr/bin/agetty --noclear %I $TERM

To:

ExecStart=-/usr/bin/agetty --autologin root --noclear %I $TERM

Finally in boot operating systems edit /root/.bashrc and add this line:

echo $(date) > /root/fin

Results

Debian at left:

Devuan tooks 30 seconds to start, Debian only 16 seconds!

References

sysv_vs_systemd.txt · Last modified: 2017/05/26 19:42
Public Domain Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain