Shinji, run the services!
A init and service manager in Rakudo Perl 6.
I want to learn how init systems work and also want to be able to run a systemd based distro without translating service files.
- Run
shinit
on a runit based system with minimal amount of changes (defaultrunit
stages start runit service dirs) shinit
should be able to run systemd services files without any changesshinit
should be able to replace systemd with minimal amount of changes (stage scripts should be written)- Develop own service definition with great dependency management
shinit
can successfully replacerunit
as init system without changes, but since in the stage scriptsrunit
is launched to manage services it's a bit of cheating, alsoreboot
,poweroff
andhalt
don't work without-f
.
shinit
andperl6
should be on the root filesystem if we want to boot, possible solutions are- make little sqaushfs with needed libraries
- force
MoarVM
somehow to compile to a static binary (iirc there is no functionality for that yet)
The easiest way currently is to install VoidLinux
(headless) into a VM, and install Rakudo Perl 6, clone this repo and add a new
entry to grub with the kernel command line argument init=[path to shinit clone]/bin/init
.
e.g. run the following in a VoidLinux VM (this is still untested, poke me if you need help)
xbps-install -Syu # update installed packages
xbps-install -Sy perl gcc make git wget curl # install needed build things
git clone https://github.com/rakudo/rakudo.git # get Rakudo Perl 6
cd rakudo
git checkout tags/2017.07
perl Configure.pl --gen-moar --gen-nqp --backends=moar --prefix /usr
make
make install
cd /opt
git clone https://github.com/the-eater/shinit.git
chmod +x /opt/shinit/bin/init
Now you only need to edit /etc/grub.d/10_linux
so it makes an extra entry
with the argument init=/opt/shinit/bin/init
I'm sorry