"$ALL" facility in LSB header is ignored by systemd

Solution Verified - Updated -

Issue

  • The Linux Standard base(LSB) header in /etc/init.d/myservice defines the $ALL facility as a requirement, but systemd ignores it.

    ### BEGIN INIT INFO
    # Provides:          scriptname
    # Required-Start:    $ALL
    # Required-Stop:     $ALL
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Start daemon at boot time
    # Description:       Enable service provided by daemon.
    ### END INIT INFO
    

Environment

  • Red Hat Enterprise Linux 7, 8, 9
  • systemd

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