Replacing rc(8) (Was: FreeBSD Boot Times)
Daniel Robbins
drobbins at funtoo.org
Wed Jun 20 20:28:39 UTC 2012
On Wed, Jun 20, 2012 at 2:22 PM, Daniel Robbins <drobbins at funtoo.org> wrote:
>
> This doesn't change the "hard" runlevel (3) but it changes the OpenRC
> logical runlevel. Basically, this convenient system is compatible with
> traditional linux numerical runlevels but does depend on them.
>
Meant to type: "does NOT depend on them".
Here is a bit more info:
Runlevel-specific conf.d files:
http://www.funtoo.org/wiki/Funtoo_Linux_Networking#Alternate_Configs
Stacked runlevels (this is a more sophisticated feature than just
creating a duplicate, separately-managed runlevel):
http://www.funtoo.org/wiki/Stacked_Runlevels
To create a separately-managed runlevel, you would just:
# mkdir /etc/runlevels/maintenance
# rc-update add maintenance svc1
# rc-update add maintenance svc2
# rc-update add maintenance svc1
You could then switch by typing:
# rc maintenance
Anything not in the maintenance runlevel that is currently running
would be stopped, and any new services in maintenance that are not
running would be started.
Regards,
Daniel
More information about the freebsd-hackers
mailing list