Quantcast
Channel: Linux — Plex Forums
Viewing all articles
Browse latest Browse all 7311

[Ubuntu 16.04]: "Executable path contains special characters" error with systemd

$
0
0

I'm using 0.9.16.6.1993-5089475.

In the journal, you'll see errors such as this:

Apr 27 21:17:15 ichabod systemd[1]: [/etc/systemd/system/plexmediaserver.service:14] Invalid escape sequences in line, correcting: "/bin/sh -c "/usr/lib/plexmediaserver/Plex\ Media\ Server""

You can easily fix it upstream by changing the ExecStart= line to:

ExecStart="/usr/lib/plexmediaserver/Plex Media Server"

Which also saves the sh parent invocation, and means journal entries have the right process name.

By the way, you don't need to / shouldn't test for existence before attempting to create a file or directory, so you can also replace the complex ExecStartPre= line with the following:

ExecStartPre=/bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"

Thanks. :-)


Viewing all articles
Browse latest Browse all 7311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>