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

GParted 0.21 Brings ReFS Detection, EXT4 For RHEL5, Reiser4 For Linux 3.x

Version 0.21 of the widely-used, GUI-based GNOME Partition Editor is now available. GParted 0.21 key changes according to its developers include a fix for a off by one sector error with GParted's internal block copy, support for EXT4 file-systems on RHEL/CentOS 5.x, and removing unnecessary duplicate actions when resizing a partition. Read more

Ubuntu Touch Apps Running in Unity Desktop – Video

Unity 8 for Ubuntu is coming along and Mir is also making good progress. One of the byproduct of all these improvements is that some of the apps that are designed for the Ubuntu Touch are also working on the Ubuntu desktop, with very little help. Read more

Debian Forked: All for Devuan and Devuan for All?

It is hard to see the direction Devuan will take, given that the project is still in its early days. The new community could create a shallow derivative, or it could fork the entire Debian archive. Another option is to try replacing Debian entirely and become a new gateway between upstream projects and users of all packages, which would require a lot more manpower and infrastructure. Read more

Wireless-enabled i.MX6 SBC offers remote IoT management

Eurotech’s “CPU-351-13″ SBC runs Linux on Freescale’s i.MX6 SoC, and offers ZigBee, GPS, extended temperature operation, remote IoT management, and more. Eurotech has been promoting the concept of managed Internet of Things devices long before “IoT” became the latest craze. The Yocto Linux ready CPU-351-13 single board computer is the latest of its embedded boards that can be remote controlled using its Everyware Software Framework (ESF) and Everyware Cloud Client. Other Everyware-enabled products from Eurotech include last year’s Intel Atom E3800 based Catalyst BT module. Read more