How to change data location ubuntu 20.04

Server Version#: latest
Player Version#: latest

old way
/etc/default/plexmediaserver is empty …
people said it’s outdated …

but /etc/systemd/system/plexmediaserver.service did not worked aswell …

[Unit]
Description=Plex Media Server for Linux
After=network.target

[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/PlexLibrary/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
Environment=LD_LIBRARY_PATH=/usr/lib/plexmediaserver
Environment=LC_ALL=en_US.UTF-8
Environment=LANG=en_US.UTF-8
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c '/usr/lib/plexmediaserver/Plex\ Media\ Server'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

● plexmediaserver.service - Plex Media Server for Linux
     Loaded: loaded (/etc/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-04-03 23:38:33 CEST; 3s ago
    Process: 103901 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
   Main PID: 103903 (sh)
      Tasks: 104 (limit: 76858)
     Memory: 240.4M
     CGroup: /system.slice/plexmediaserver.service
             ├─103903 /bin/sh -c /usr/lib/plexmediaserver/Plex\ Media\ Server
             ├─103904 /usr/lib/plexmediaserver/Plex Media Server
             ├─103932 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-48e10484b/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.22.1.4275-48e10484>
             ├─103970 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.22.1.4275-48e10484b 32600
             ├─104036 Plex Plug-in [com.plexapp.agents.subzero] /usr/lib/plexmediaserver/Resources/Plug-ins-48e10484b/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.22.1.4275->
             ├─104039 Plex Plug-in [com.plexapp.plugins.trakttv] /usr/lib/plexmediaserver/Resources/Plug-ins-48e10484b/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.22.1.4275>
             └─104040 Plex Plug-in [com.plexapp.plugins.WebTools] /usr/lib/plexmediaserver/Resources/Plug-ins-48e10484b/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.22.1.427>

Apr 03 23:38:33 cloudBox systemd[1]: Starting Plex Media Server for Linux...
Apr 03 23:38:33 cloudBox systemd[1]: Started Plex Media Server for Linux.

says it starts … but does not … server-ip:32400/web is not loading

also , if pms stopped, error is /etc/systemd/system/plexmediaserver.service:14: Ignoring unknown escape sequences: "/usr/lib/plexmediaserver/Plex\ Media\ Server"

so whats the way to do this these days?

“New” way (3+ years old) is the systemd official mechanism

/etc/systemd/system/plexmediaserver.service.d/override.conf

https://forums.plex.tv/tag/server-linux-tips

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.