6.13 Wajig Reboot
20200726 After an upgrade there may be times when a reboot
is required (such as when the kernel is upgraded). We can check if a
reboot is required by checking for the file
/var/run/reboot-required which acts as a reboot flag. If it
exists then the computer requires a reboot and the contents of the
/var/run/reboot-required.pkgs will ist the packages that
necessitate the reboot.
Wajig can check the existence of the reboot flag with the `r#wajig_command(reboot) command:
$ wajig reboot *** System restart required *** The following packages necessitate the reboot: linux-image-5.4.0-42-generic linux-base evolution-data-server gnome-shell To reboot use "sudo reboot".
To reboot a computer usually requires admin privileges, hence the use of sudo with the reboot command. Wajig itself will not reboot the computer.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0