Re: Reloading the kernel with kexec before other services start
On 20/11/14 10:36, Mario Castelán Castro wrote:
> Thanks for the answer.
>
> If I understand correctly, your suggestions take effect when restarting
> the machine. I'm looking for something that takes effect when starting up.
Simpler - add an extra GRUB entry. My apologies for the confusion (I've
only used kexec for (warm) reboots.
>
> I have considered making a script in /etc/init.d/, but how can I make
> sure that this scripts gets executed before any daemon prone to
> corrupting files when terminated improperly starts?.
>
>> Or, perhaps, modify /etc/init.d/reboot, possibly something like:-
>> (as root)
>> cp /etc/init.d/reboot /usr/local/bin/reboot
>> cp /usr/local/bin/reboot{,.bak}
>> nano /usr/local/bin/reboot
>> modify to suit, then when you want to use kexec cp the modified
>> /usr/local/bin/reboot to /etc/init.d/reboot and reboot, afterwards cp
>> /usr/local/bin/reboot.bak to /etc/init.d/reboot
>
>
Kind regards
Reply to: