Booting MX-19 with runit

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Message
Author
User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Booting MX-19 with runit

#1 Post by Head_on_a_Stick »

runit is a cross-platform Unix init scheme with service supervision, a replacement for sysvinit, and other init schemes.

http://smarden.org/runit/

Unlike sysvinit, runit offers true process supervision and unlike systemd it has a smaller codebase (and hence potentially fewer bugs). For comparison: runit-init is 9KiB, sysvinit is 52KiB and systemd is 1.5MiB.

To change from sysvinit to runit use these commands and reboot:

Code: Select all

sudo apt update && sudo apt install runit{,-init}
Although runit is well configured for Debian systems, MX Linux reserves runlevel 5 for the graphical login screen so we also need to change that with

Code: Select all

sudo sysv-rc-conf
Navigate to the LightDM line and enable the script for runlevels 2, 3 & 4 (as well as 5) then quit to save the change.

See this page for a guide to migrating from sysvinit service files to runit scripts (step 5, purely optional): http://smarden.org/runit/replaceinit.html#sysv

In case of problems, boot with systemd (using the Advanced Options boot sub-menu) and re-install the sysvinit-core package to return to the stock configuration.

Preliminary ISO images are available from this post: viewtopic.php?p=545422#p545422
Last edited by Head_on_a_Stick on Sat Dec 07, 2019 12:49 pm, edited 5 times in total.
mod note: Signature removed, please read the forum rules

User avatar
anticapitalista
Developer
Posts: 4282
Joined: Sat Jul 15, 2006 10:40 am

Re: Booting MX-19 with runit

#2 Post by anticapitalista »

Thanks.

Tried this in VBox with antiX-19 (net install) - seems to be working well. Testing some more.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
anticapitalista
Developer
Posts: 4282
Joined: Sat Jul 15, 2006 10:40 am

Re: Booting MX-19 with runit

#3 Post by anticapitalista »

Just to add that boot time to a fluxbox 'desktop' with slim login manager (auto-login) takes <6 secs! Usually it is 10 secs in these tests with sysvinit.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
oops
Posts: 1885
Joined: Tue Apr 10, 2018 5:07 pm

Re: Booting MX-19 with runit

#4 Post by oops »

Thanks,

I will try too, into a small partition.
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19_x64 & antiX19_x32

Huckleberry Finn

Re: Booting MX-19 with runit

#5 Post by Huckleberry Finn »

I was trying on 18.3 without success and was wondering if MX Team would consider Runit.. Will try on 19 :)

Edit: Wooooooooohooooooooooow

Writing on MX 19 Runit "Baremetal" - 32bit :D

:number1:

Yes, started manually with startx,

First Feedback: Conky shows exactly same numbers of Ram and Cpu as it was with sysvinit 2.96

Will now do the automation for startx.

(Meanwhile, maybe you edit the command and add: sudo apt update ; at the beginning :) )

Can give more feedback if asked or observed anything interesting.

User avatar
anticapitalista
Developer
Posts: 4282
Joined: Sat Jul 15, 2006 10:40 am

Re: Booting MX-19 with runit

#6 Post by anticapitalista »

I just made antiX-19.1-full-runit iso and will play with this to see how well (or not) persistence/snapshot/frugal works
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

Huckleberry Finn

Re: Booting MX-19 with runit

#7 Post by Huckleberry Finn »

The only negative observation: There was a screen glitching with Thunar only (1.8.9) on 4.9.200 kernel (and previously 4.9.193) and that became increased so much. ( Graphics: Intel Mobile 915GM/GMS/910GML Express Graphics, driver i915)

Other observations:

pm-suspend works perfectly as it was with sysvinit
the default suspend xfce4..logout also works but screen doesn't get locked (also screen-lock doesn't work, as it seems there's something with light-dm or lightlocker as mentioned)

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: Booting MX-19 with runit

#8 Post by Head_on_a_Stick »

anticapitalista wrote: Fri Dec 06, 2019 4:44 pm Just to add that boot time to a fluxbox 'desktop' with slim login manager (auto-login) takes <6 secs! Usually it is 10 secs in these tests with sysvinit.
Nice!

For MX-19 I have a delay before the console login shows, this seems to be caused by Plymouth. Removing it fixes the problem.
Huckleberry wrote: Fri Dec 06, 2019 4:51 pm Writing on MX 19 Runit "Baremetal" - 32bit :D
Fantastic news, thanks for testing :happy:
Huckleberry wrote: Fri Dec 06, 2019 4:51 pm Conky shows exactly same numbers of Ram and Cpu as it was with sysvinit 2.96
Yeah the difference is only a few hundred KiB, try ps_mem for a detailed break down of RAM usage.
Huckleberry wrote: Fri Dec 06, 2019 4:51 pm maybe you edit the command and add: sudo apt update ; at the beginning :)
Good point, thanks!
Huckleberry wrote: Fri Dec 06, 2019 5:19 pm screen doesn't get locked
Yes, that is a problem — light-locker is tightly integrated with LightDM so an alternative is needed.
mod note: Signature removed, please read the forum rules

Huckleberry Finn

Re: Booting MX-19 with runit

#9 Post by Huckleberry Finn »

Thank you so much :) I've been wondering Runit since a long time ago :)

Soon there would be a solution about light-dm. Maybe something simple, or an alternative as you say..

Will now reboot to try the automated startx.

Edit: That one is ok, too. As mentioned, you just type username & password manually on tty1 .

(And I see nothing related to light-dm on init text .. )
______________________________________________________

Default commands xfce4-... -suspend -reboot -halt

and also :

sudo init 0
sudo init 6

All work normal (as on sysvinit v 2.96)
_______________________________________________________

By the way, Ram usage on the same conky dropped by 5MİB :

The min. point was 210 MİB when new booted & idling on sysvinit, and now I saw 204 and it settled at 205 MİB

(Which was 340 when MX 19 was first installed)

User avatar
Richard
Posts: 1590
Joined: Fri Dec 12, 2008 9:31 am

Re: Booting MX-19 with runit

#10 Post by Richard »

Ran
sudo apt update && sudo apt install runit{,-init}
on EeePC 32 bit netbook.

But it still rebooted into SysVinit.
Rereading the thread and continuing trials.
Last edited by Richard on Sat Dec 07, 2019 12:18 am, edited 1 time in total.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
__kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
__Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.
HP Ryzen 5 17-cp3xxx with MX23.4 AHS & Liquorix 6.10-12~mx23ahs amd64

Post Reply

Return to “Tips & Tricks by users”