On Red Hat Enterprise Linux, why do my custom init scripts not get executed on shutdown?

Solution Verified - Updated -

Issue

  • Custom /etc/rc.d/init.d script has been written, but not getting executed on shutdown
  • Necessary symlinks are in /etc/rc0.d and /etc/rc6.d
  • Script in /etc/rc6.d doesn't run while reboot the server
  • The stop command lines in test script in /etc/rc6.d don't execute when rebooting the server

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