:: Re: [DNG] Switching to OpenRC
Góra strony
Delete this message
Reply to this message
Autor: Hector Gonzalez
Data:  
Dla: dng
Temat: Re: [DNG] Switching to OpenRC


On 05/15/2018 06:23 AM, Martin Steigerwald wrote:
>
> This basically did it for me. But this warning has been unhelpful for me:
>
> %:/var/lib/dpkg/info# grep -A 2 "sysv" *openrc*
> openrc.postinst:        echo "*** WARNING: if you are replacing sysv-rc by OpenRC, then you must ***"
> openrc.postinst-        echo "*** reboot immediately using the following command:                ***"
> openrc.postinst-        echo 'for file in /etc/rc0.d/K*; do s=`basename $(readlink "$file")` ; /etc/init.d/$s stop; done'

>
> (Devuan Ascii with sysvinit-core, systemd package already purged)
>
> What this did on my system is: Stop all services and then sit there. It
> did not reboot. I asked a co-worker to reboot the machine via the
> hypervisor and it worked.
>


This happens because runlevel 0 ends with "K12halt", so the warning is
wrong, if you want to reboot you should use runlevel 6, the last command
it runs is "K12reboot".

--
Héctor González
cacho@???