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.' ?
Issue
-
A
systemdservice fails tostartordisplayswarnings after deployment onRed Hat Enterprise Linux8. -
When a
systemdservice file contains.includedirectives,systemdwill 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.