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
shiniton a runit based system with minimal amount of changes (defaultrunitstages start runit service dirs) shinitshould be able to run systemd services files without any changesshinitshould be able to replace systemd with minimal amount of changes (stage scripts should be written)- Develop own service definition with great dependency management
shinitcan successfully replacerunitas init system without changes, but since in the stage scriptsrunitis launched to manage services it's a bit of cheating, alsoreboot,poweroffandhaltdon't work without-f.
shinitandperl6should be on the root filesystem if we want to boot, possible solutions are- make little sqaushfs with needed libraries
- force
MoarVMsomehow 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
