Language Selection

English French German Italian Portuguese Spanish

Should 'halt' call 'shutdown'?

Filed under
Linux

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

GNOME News

  • Hurrah! Dash to Dock Now Supports GNOME 3.24
    The Dash to Dock GNOME Shell Extension has been updated to support GNOME 3.24, and improves its app launch keyboard shortcut feature.
  • openSUSE Tumbleweed Is the First to Offer the GNOME 3.24 Desktop Environment
    openSUSE Project's Dominique Leuenberger was proud to announce the availability of the recently released GNOME 3.24 desktop environment into the software repositories of the openSUSE Tumbleweed rolling release. According to the developer, and to our knowledge, openSUSE Tumbleweed is now the first GNU/Linux distributions to offer the GNOME 3.24 packages to their users. We know that openSUSE is a distro mostly oriented towards the KDE Plasma desktop, but support for GNOME is provided at the same level of quality.

Linux Action Show ends after 10-year run

This past Sunday, Jupiter Broadcasting announced the Linux Action Show—one of the longest-running podcasts in the Linux world, which has aired almost continuously since June 10, 2006—is coming to an end and closing down production. Over a decade. That is a seriously good run for any show—podcast, TV, radio or otherwise. When I and my co-host created the Linux Action Show (typically abbreviated as LAS) nearly 11 years ago, we had no idea it would last this long. Nor did we have any idea of how far it would grow. Read more

Red Hat News

Samsung Z4 gets WiFi Certified with Tizen 3.0 onboard, Launching soon

Today, the next Tizen smartphone, which should be the named the Samsung Z4, has received its WiFi certification (certification ID: WFA70348) – Model number SM-Z400F/DS with firmware Z400F.001 on the 2.4Ghz band. WiFi certification is usually one of the last steps before a mobile device gets released and means a launch is coming real soon as we have already seen the Z4 make its debut appearance at the FCC. For the previous model, the Samsung Z2, we saw it get WIFi certified on 7 July and then launched on 23 August, a mere 6 weeks. Read more