Linux updateing plexmediaserver.service

When i update my debian linux server, it changes the /plexmediaserver.service file. To default /var/blah. location.
But i have server on /disk/plexmediaserver… It did work with autoupdate before. So i did a manual update to do a test. “dpkg -i .deb file”. But it still changed the service file…
So now it always change it, so i have to manual update the service file to the location where i run the server from… Anyone know what i have to do, so i have dont have to change this startup file…

Eis

Server Version#: DEbian
Player Version#: Latest

I suspect you’re editing the master distribution service file in /lib/systemd/system/plexmediaserver.service

That’s not how Plex is to be customized. Systemd and the package manager do it differently.

Hi tthere

That is rewritten to fit my system. But still it does change the one under /etc/systemd…

Eis…

Which distro and version are you using?

Systemd systems use /etc/systemd/system/plexmediaserver.service.d/override.conf
I do not touch that file during update.

I do, however, force overwrite /lib/systemd/system/plexmediaserver.service

if you have hard-linked the two or have something residual from Ubuntu 15 or 17, it will need be updated now.

Its not under there it seems anymore…

/etc/systemd/system/multi-user.target.wants/plexmediaserver.service

Debian 9.8

Sorry,
you are not holding it right.

/etc/systemd/system/multi-user.target.wants/plexmediaserver.service is a symbolic link which systemd uses to tell it which services to start. It is the control mechanism.

If you type systemctl disable plexmediaserver , the symlink is removed.

Please now do it as instructed which is how systemd supports it.

Put all customizations in /etc/systemd/system/plexmediaserver.service.d/override.conf as shown in the customization How-To linked above.

Oki, great. Thanks for your info

Eis

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