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

More Games

Red Hat News

Goodbye Solaris

  • Guilty SPARC: Oracle euthanizes Solaris 12, expunging it from roadmap
    Rumors have been circulating since late last year that Oracle was planning to kill development of the Solaris operating system, with major layoffs coming to the operating system's development team. Others speculated that future versions of the Unix platform Oracle acquired with Sun Microsystems would be designed for the cloud and built for the Intel platform only and that the SPARC processor line would meet its demise. The good news, based on a recently released Oracle roadmap for the SPARC platform, is that both Solaris and SPARC appear to have a future. The bad news is that the next major version of Solaris—Solaris 12— has apparently been canceled, as it has disappeared from the roadmap. Instead, it's been replaced with "Solaris 11.next"—and that version is apparently the only update planned for the operating system through 2021.
  • Oracle Finally Confirms It's Canning Solaris 12
    At the beginning of December there were rumors of Oracle canning Solaris and now that's finally been confirmed by Oracle more or less as they will not be delivering Solaris 12. According to Ars, they got confirmation from Oracle that they will not be going ahead with Solaris 12 as planned. Solaris 12 has been canceled and wiped off their roadmap. Oracle is said to be working on a "Solaris.next", but no details yet. This "Solaris.next" is also reportedly the only planned Solaris update through 2021.

Microsoft 'Loves' Linux Again