You are not logged in.
Pages: 1
Topic closed
Hi, everyone!
I am in doubt to choose which init is best for my system, recently I have abandoned systemd and am quite layman about alternative inits.
I saw that according to https://www.devuan.org/os/init-freedom there are eight inits available in Devuan, however, in your Gitea repository Epoch additional packages are shown.
Which system init is the best choice?
Thanks.
Offline
Use the one that's the default for the distro you are using - that's the one that will get the most love and attention from the distro's developers, and will give you the most trouble-free experience. On Devuan and antiX and Slackware, that's sysvinit. On Artix, that's openrc. On Void, that's runit.
Offline
I like OpenRC because it's easy to manage with rc-update & rc-status.
Brianna Ghey — Rest In Power
Offline
If s6-init becomes lighter than even runit, maybe that?
If not, Runit is a good one.
Just need to learn how to use it better. Haven't felt the motivation as much to learn due to it being not finished on Hyperbola, but I use it alot on Devuan.
Openrc is the probably the most userfriendly so far? I think?
If s6 is more user friendly and lighter on the system, meaning less battery power used, I may have more interest.
All that being said, currently runit is the fastest I have seen, and uses the least ram and I think also CPU.
But if you want an easy one, do not use runit unless you look at how to use it and feel like you understand it enough.
Some apps need to autostart aka after you logout, others need to always be on and some should only be on when you want them on.
Anywho my two cents.
Last edited by zapper (2022-02-13 03:08:12)
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Offline
If your main interest is in having a running system, then go with the default, SysVinit, in the case of Devuan.
If you are interested in playing with the init system, or you are running a service which must be kept going, then Runit and OpenRC are interesting and can supervise the services.
OpenRC is probably easier for setting up new services, with its declarative style of script.
Runit seems to get rave reviews from people who understand the internals, but it does require setting up a directory structure for each service.
It depends a bit on how they are installed, as both Runit and OpenRC can be installed to be started from SysVinit, which takes its initial instructions from /etc/inittab. Runit can add an entry at the end on inittab :-
#-- runit begin
SV:123456:respawn:/etc/runit/2
#-- runit end
While OpenRC replaces /etc/init.d/rcS and /etc/init.d/rc, which are called from inittab.
Both Runit and OpenRC can replace the SysV init, in which case inittab is not referenced.
This has the effect that the gettys would not be started and they must be set up using the features of your new init system. If you install them from scratch, then this may have already been taken care of.
The Runit init does seem to work well.
I did have problems with the OpenRC init, resulting in the system not being shutdown cleanly, so that the file systems needed checking at boot time. When it boots from SysV init, it has an extra run state to pass through and this work nicely and the system shuts cleanly.
I have tried patching the OpenRC init to add this extra run state, but I failed to pursuade the Debian maintainers on this point.
https://dev1galaxy.org/viewtopic.php?id=2788
with details of the patching here :-
https://dev1galaxy.org/viewtopic.php?pid=21180#p21180
Geoff
Offline
I generally stick with the default init the operating system comes with, for Devuan this is i believe sysvinit. But i do like openrc and use it on artixlinux and more recently on alpine linux. Overall all though i believe openrc is one of the better inits out there imo.
Offline
i would probably share the same 2 cents as @zapper..
been sticking with runit for the last year or so, because it feels so much faster to boot.
one of the cons, i think it's the different way it's implemented across distros.. not easy to get same results as devuan/debian, antix, artix, void, use it differently.. (even though i think antix lately resembled the artix way?). would prefer a similar set of files/scripts across distros, also in order to share missing scripts and make it more widely used, but..., anyway..
Offline
I am using openrc since ASCII.
Offline
I'm using openrc as well, since ascii. I find it easy to manage.
pic from 1993, new guitar day.
Offline
I agree, OpenRC is the logical choice:
It's easy to use,
It's very effective
It's maintainable and transparent
And, it's mostly compatible with old init scripts
I have used it from the beginning with Devuan and it never failed me.
It does one job and does it well
All this in a very true UNIX manner
Offline
Unless your writing your own rc scrips / services / unit files, I'm not sure why you'd care.
Offline
^ I still get confused with sysvinit when it comes to enabling and disabling services and also with checking if they are actually enabled, which is why I prefer OpenRC or systemd with their more straightforward management tools.
For my ROCK Pi S switching Debian from systemd to runit (with runit-init as PID 1) saves a significant amount of memory on a device which only has 512MiB to spare.
There are also the inherent advantages conferred by moving to a smaller code base, which is especially relevant when comparing systemd with OpenRC, runit or s6: less code == less potential for bugs to creep in. Theoretical, granted, but still a factor.
EDIT: *you're
And here's a comparison of the binary sizes for the Debian bullseye/Devuan chimaera versions:
$ ls -l lib/{systemd/systemd,runit/runit-init} sbin/{openrc-,}init
-rwxr-xr-x 1 empty empty 18760 Jul 25 2021 lib/runit/runit-init
-rwxr-xr-x 1 empty empty 1739200 Jul 13 2021 lib/systemd/systemd
-rwxr-xr-x 1 empty empty 52240 Apr 18 2021 sbin/init # sysvinit
-rwxr-xr-x 1 empty empty 22520 Apr 2 2021 sbin/openrc-init
$
Last edited by Head_on_a_Stick (2022-02-16 20:31:46)
Brianna Ghey — Rest In Power
Offline
i'd say sysvinit but i am biased from old linux and since sysvinit scripts can be rather simple when you want something that just works without using the lsb stuff.
Offline
I prefer all systems except systemD. Runit is the best for desktop use. On the other hand openrc is popular and widely used. SysVinit is old but i can say it just works and a lot distributions still use it. There is also s6 which is also very good and powerfull but on the other hand very difficult for me.
Last edited by rhtoras (2022-03-13 15:37:31)
Offline
I prefer all systems except systemD.
Did you mean to say Soystem-D?
Offline
rhtoras wrote:I prefer all systems except systemD.
Did you mean to say Soystem-D?
Head on a sticK really dislikes when you spell systemd incorrectly lmao.
Offline
Don'cha know that the kiddies have to be stoopiD . . .
Online
g'day m8, shoitstemd is crap m8, install sysvinit m8.
Offline
This thread has reached a new and embarrassing low in Devuan history . . . grow up . . .
Online
Pages: 1
Topic closed