Why a Systemd service fails with error ' .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.' ?

Solution Verified - Updated -

Issue

  • A systemd service fails to start or displays warnings after deployment on Red Hat Enterprise Linux 8.

  • When a systemd service file contains .include directives, systemd will show warnings similar to:

    systemd[1]: /etc/systemd/system/testapp.service:10: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
    

Environment

  • Red Hat Enterprise Linux 8
  • 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