Update for Plex breaks Media Server on Ubuntu 16.04 LTS

I run my Plex Media Server on Ububtu 16.04 LTS. My Plex library databse is located on another drive from the default install. The entry in /lib/systemd/system/plexmediaserver.service looks like this:

[Service]
Environment=“PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/home/rhino9094/Plex/Library/Application Support”

I download the provided Plex update .deb files from my Plex Media Manager when they become avaialble, and use a gui based installer called GDebi to install them. I do this because I’m not fluent on CLI and it is just quicker and more convenient for me to do so.

On my previous install of Ububtu 12.04 LTS, occasionally I would be prompted that a new config file was available and I could ignore it. Then the path to my library wasn’t overwritten. On most updates I got no such prompt but the update still ignored the fact that my library files were not in the default path.

On the current version, I get no warning and the plexmediaserver.service file is overwritten with the default path to the library. If I forget to stop the “plexmediaservice” before I run the update, (something I didn’t need to worry about in the past) I have to then stop the service. Sudo edit the plexmediaserver.service file to correct the path. Reload the systemctl daemon and then restart the service. I then must go to the Plex Media Manager and remove the new server that was found after the update ran.

I simply want to be able to update Plex as I did in the past and have the update ignore the fact that my database is located elsewhere. I worked flawlessly on 12.04 LTS, and now on 16.04 it is a mess.

I am not “The Expert” but the recommended steps for a custom configuration is to use an override file

forums.plex.tv/discussion/286395/customizing-your-plex-configuration

The override configuration file does not get override on updates.

Hope this helps.

Please refer to https://forums.plex.tv/categories/linux-tips

Of particular interest is: https://forums.plex.tv/discussion/286395/customizing-your-plex-configuration

The file /lib/systemd/system/plexmediaserver.service is under control of the package manager. As such, I force overwriting it with each installation.

Thank you both. This is exactly what I was looking for. I had a custom file when I was using init on 14.04 LTS, but when I upgraded to 16.04 LTS I had trouble locating that article posted by NEllo33. Thanks again both of you.