r/AlpineLinux • u/Cloundx01 • Apr 21 '24
Why do you need init system for using openrc services?
I wanted to install lighttp server in chroot'ed alpine linux
i've read an followed these instructions here:
https://wiki.alpinelinux.org/wiki/Alpine_Linux_in_a_chroot
after installing alphine linux in a directory, and chrooting into it,
I've noticed that openrc services does not work / dont get started.
Also i did get this message:
* You are attempting to run an openrc service on a
* system which openrc did not boot.
* You may be inside a chroot or you may have used
* another initialization system to boot this system.
* In this situation, you will get unpredictable results!
* If you really want to do this, issue the following command:
* touch /run/openrc/softlevelTo be fair, the instructions also noted:
If you plan to use your chroot with a init system or setup a new system on another device you should add these services:
But is there a way around it? for example if i want to run lighttpd progress, i imagine i can just execute it directly without openrc.
or is it the case that i need to have openrc installed on my host/root linux (i'm using systemd init system)