How could RHEL sysv init shutdown scripts fail to stop a service which can be stopped gracefully by the service command?

Solution Verified - Updated -

Issue

  • On shutdown or reboot, Red Hat Enterprise Linux is not stopping some services -- services which do shutdown when stopped via the service command. What's going on?

  • Some 3rd party vendors don't make their service scripts manage lock files and thus their services hard crash on system shutdown (or cause system hangs). This shutdown behavior seems to have been in RHEL for a long time but knowledge of it in the wild seems pretty rare, as many 3rd party service scripts don't implement lock files. Instead of hacking up vendor scripts, could we have an option to force the stop function of all services to be run regardless of whether /var/lock/subsys/<service_name> is present?

Environment

  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content