Autostart Linux Mint

Server Version#: 1.21.2.3943

Hi,

i want plexmediaserver to run when my pc starts (even when i dont login!), but it wont work.

Thats what i did (Mint 19.3 XFCE 64bit):

  1. The storage i use for my files is mounted at /storage. The fstab says:
    UUID=… /storage ext4 defaults 0 2

  2. On /storage there is a folder called DLNA in which my files for plex are. The owner of the folder is user:user (770).

  3. Then i installed plex in this way (see “Install Plex”)
    Set up a Plex server on a headless Ubuntu 16.04 server · GitHub

I replaced “$USER” with my user name.

The problem is:
When i restart my machine (without login) plexmediaserver is started so far.
sudo systemctl status plexmediaserver.service gives an active(running).
I can go to the web-interface too.

But my tv doesnt find the server!

I have to do a “sudo systemctl plexmediaserver.service restart” to see it on tv.

Whats the problem?

That Github procedure is incorrect.

  1. The service file is in /lib/systemd/system/plexmediaserver.service
  2. No /etc/systemd/system/plexmediaserver/service should ever exist. Github references the initial release of Ubuntu 16 – which was broken for systemd.
  3. The correct way to customize PMS, which obeys the systemd supported method is here.

PS: When you install PMS,

  1. The installer will refuse to install if /etc/systemd/system/plexmediaserver.service exists.
  2. /lib/systemd/system/plexmediaserver.service is always overwritten by the package manager so it’s unsafe to place modifications there

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