systemd syntax check fails with "\"

Solution In Progress - Updated -

Issue

After the update of systemd on the version 219-57 error messages are generated for service files which use a \ for line break:

Example:

# cat /etc/systemd/system/nscale-webdav.service
[...]
ExecStart=/var/ceyoniq/nscale-webdav/jre/bin/java \
          -Xms24M -Xmx256M -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=20 \
          -cp /var/ceyoniq/nscale-webdav/lib/* 
[...]

When starting gives:

 systemd[1]: [/etc/systemd/system/nscale-webdav.service:30] Trailing garbage, ignoring.
 systemd[1]: [/etc/systemd/system/nscale-webdav.service:31] Unknown lvalue '-Xms24M -Xmx256M -XX:MinHeapFreeRatio' in section 'Service'
 systemd[1]: [/etc/systemd/system/nscale-webdav.service:32] Missing '='.

Environment

Red Hat Enterprise Linux 7

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