Quick Rebooting Linux

Rebooting Linux server normally takes a long time to load the boot loader services etc but you still have an option to quick boot the server using the following command

  • # reboot -f


-f     Force halt or reboot, do not call shutdown(8).

You should be careful while using this command as it does not save any recent configuration changes made on GRUB and partitions. Another option to quick rebooting the server without going for traditional rebooting steps (ie..skipping the entire boot-loader stage and directly jumps into the kernel that we want to boot to and for that you need to use the kexec tool for more information refer to IBM kexec user guide

 

How to stop a linux process

In many occasion we may need to stop and start a process temporarily for some reasons(for example stopping rsync process for some time if the system loads goes up). This can be done using the KILL command with the -STOP option and the same process can be started again using -CONT option. For example :

  • # kill -STOP 10007 (10007 is the pid)

The above command will sends a signal requesting to block/stop the pid 10007. And the below command will sends a signal request to continue/restart the suspended process.

  • # kill -CONT 10007 (10007 is the pid)