Language Selection

English French German Italian Portuguese Spanish

Should 'halt' call 'shutdown'?

Filed under

As mentioned briefly in the comments section of Bootstrapping your Linux Machine, recent Linux systems have added a convenience feature to the 'halt' and 'reboot' commands: they actually call 'shutdown' if the system isn't in init state 0 or 6.

You can override this behaviour with "-f" or use 'poweroff', but I'm not entirely sure that this was a good idea to start with.
The purpose of 'shutdown' is to bring the system down cleanly. It should kill off user processes gently (starting with SIGTERM so that processes that trap that can clean up open files, etc.) and it should then have 'init' change run levels so that appropriate scripts can run to do other cleanup.

This is all to the good. It's the way a system should be brought down under normal circumstances, so having 'halt' and 'reboot' invoke 'shutdown' is certainly helpful for the naive user who doesn't understand what should be done to bring down a system. But should traditional commands be perverted to prevent naive users from damaging systems?

Full Article.

More in Tux Machines

Dropping Ubuntu Edge Was Canonical's Biggest Mistake

Ubuntu Edge was the superphone from Canonical that never raised the money it needed to become a reality, and the community is still asking about it, two years later. The truth of the matter is that not making the Ubuntu Edge phone is probably the biggest mistake the company ever made. Read more

The OpenGL ES 3.1 Foundation Is Being Laid In Mesa

Intel developers in particular have been trying to wrap-up OpenGL ES 3.1 support within Mesa. That work is getting closer to finally being realized. Intel developers have been working hard on GLES 3.1 enablement in Mesa but it didn't make it for Mesa 10.6. As of writing this article, the outstanding OpenGL ES 3.1 extensions still needed to be finished for Mesa include ARB_arrays_of_arrays, ARB_compute_shader, ARB_framebuffer_no_attachments, ARB_shader_image_load_store, ARB_shader_image_size, and ARB_shader_storage_buffer_object. Most of these OpenGL extensions have been started but not yet completed. Read more

GParted Live 0.22.0-2 Switches to Linux Kernel 4.0, Offers Better UEFI Support

Steven Shiau, the creator of the Clonezilla Live and GParted Live projects, has made available a new version of the GParted Live distro, as announced on May 26 by Curtis Gedak. Read more

GNOME Software Gets Its First Update for GNOME 3.18

The GNOME developers are hard at work these days to release the second milestone for the upcoming GNOME 3.18 desktop environment, which will see the light of day on September 23, 2015. Read more Also: GTK+ 3.17.2 Requires Windows Vista or Newer, Offers Better Wayland Support