OpenRC 0.35 for FreeBSD
jmaloney at ixsystems.com
Fri Mar 2 01:02:26 UTC 2018
I have been working on a single diff version of OpenRC for FreeBSD:
Why OpenRC? The licensing is right, and it's a way of adding modern
features to service management without reinventing the wheel. That's
my sales pitch. This newest itteration is a result of a year, and a
half of feedback from the import into TrueOS. Eventually it will be
upstreamed into TrueOS to further reduce the diff again between
TrueOS, and FreeBSD.
The single commit in this new fork allows coexistence with rc.d. It
also uses dhcient again although there isn't a service to start it
directly yet but it does get started with netif. I have just recently
replaced OpenRC's bootmisc service with a dummy service that launches
cleartmp, cleanvar. Once I replace the remaining 7 or so scripts with
FreeBSD converted scripts I will rework the dependancies to remove the
uncessary dummy scripts during a second audit. I have been working on
a conversion tool which eases some of the conversion of the remaining
89, or so scripts.
As is this implemtnation only touches top level Makefiles, mtree, adds
new files, and adds a modified init which changes pathnames.h to call
/etc/openrc. This is work in progress so I am not quite done, and I
have been making tickets in the fork to keep track. I was thinking
for example of making a kenv option which would allow a single init to
switch pathnames settings perhaps. At the same time I was trying to
avoid being intrusive by touching service, or init. So therefore
there is service, and rc-service. There is init, and openrc-init.
There is rc, and openrc. There is rc.shutdown, and openrc.shutdown.
You just change init_path for loader, and that is that.
I have full details in the wiki at the fork, and tickets for the items
I plan to tackle next:
I have had a lot of fun working on this learning how base is tied
together, how bsdinstall is started, learning the internals of rc.d
scripts, etc. I would appreciate any feedback. Thanks.
More information about the freebsd-hackers