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):
The storage i use for my files is mounted at /storage. The fstab says:
UUID=… /storage ext4 defaults 0 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).
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.
The service file is in /lib/systemd/system/plexmediaserver.service
No /etc/systemd/system/plexmediaserver/service should ever exist. Github references the initial release of Ubuntu 16 – which was broken for systemd.
The correct way to customize PMS, which obeys the systemd supported method is here.
Customizing your Plex configuration on systemd based systems
This information is intended for those systems where cat /proc/1/comm returns systemd.
On systems which use Systemd (Ubuntu 16+, Fedora, Centos 7, Debian 8,) you create this customization file which SystemD reads prior to launching PMS. This file is independent of the default configuration and service control mechanisms in /lib/systemd/system/plexmediaserver.service. Your customization override is preserved across updates, uninstal…
PS: When you install PMS,
The installer will refuse to install if /etc/systemd/system/plexmediaserver.service exists.
/lib/systemd/system/plexmediaserver.service is always overwritten by the package manager so it’s unsafe to place modifications there
system
Closed
May 4, 2021, 6:21pm
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.