diff options
author | Aaditya Bagga <aaditya_gnulinux@zoho.com> | 2018-11-07 14:26:23 +0530 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-11-30 21:07:55 +0700 |
commit | 5679f858c08d713fed6c7785a6f3ad7ae165e421 (patch) | |
tree | 3750dc7b006e4f8da8298daa5ec6d45bd65a58bb /system/openrc/README.Slackware | |
parent | 8f86af26b34ecd01fc5d80b4e073814712d672d7 (diff) | |
download | slackbuilds-5679f858c08d713fed6c7785a6f3ad7ae165e421.tar.gz |
system/openrc: Updated for version 0.39.2 + SYSCONFDIR changed.
Diffstat (limited to 'system/openrc/README.Slackware')
-rw-r--r-- | system/openrc/README.Slackware | 42 |
1 files changed, 36 insertions, 6 deletions
diff --git a/system/openrc/README.Slackware b/system/openrc/README.Slackware index 72b655e89b..64a005df16 100644 --- a/system/openrc/README.Slackware +++ b/system/openrc/README.Slackware @@ -1,8 +1,38 @@ -Before installing OpenRC, the /etc/init.d folder would need to be moved out, ie: -# mv /etc/init.d /etc/init.d-bak +After installing, -After installing, /etc/inittab would need to be replaced. The old one can be backed up: -# cp /etc/inittab /etc/inittab.sysvinit -# mv /etc/inittab.new /etc/inittab +1. Setup essential services: -Services for OpenRC can be found in the openrc-services package. + # main tty + ln -s /etc/openrc/init.d/agetty /etc/openrc/init.d/agetty.tty1 + /sbin/rc-update add agetty.tty1 default + + cp /etc/openrc/conf.d/agetty /etc/openrc/conf.d/agetty.tty1 + echo 'agetty_options="--noclear"' >> /etc/openrc/conf.d/agetty.tty1 + + # additional ttys + for i in {2..6}; do + ln -s /etc/openrc/init.d/agetty /etc/openrc/init.d/agetty.tty${i} + /sbin/rc-update add agetty.tty${i} default + done + + # serial tty (for servers) + ln -s /etc/openrc/init.d/agetty /etc/openrc/init.d/agetty.ttyS0 + /sbin/rc-update add agetty.ttyS0 default + + cp /etc/openrc/conf.d/agetty /etc/openrc/conf.d/agetty.ttyS0 + echo 'agetty_options="--noclear"' >> /etc/openrc/conf.d/agetty.ttyS0 + + +2. Add the following to boot parameters (via /etc/lilo.conf for lilo + or /etc/default/grub for grub): + + init=/sbin/openrc-init + +Regenerate boot configuration ('lilo -v' or 'grub-mkconfig -o /boot/grub/grub.cfg') + +3. Reboot! + +## Note + +If migrating to OpenRC 0.39+ from previous versions, please check: +https://docs.slackware.com/talk:howtos:general_admin:openrc#migrating_to_openrc_039_from_previous_versions |