mrworf / plexupdate

Plex Update script to simplify the life of Linux Plex Media Server users.
GNU General Public License v2.0
1.77k stars 146 forks source link

Resets service group #296

Closed RemonVanNieuwenhuizen closed 2 years ago

RemonVanNieuwenhuizen commented 2 years ago

After every update I have to update /lib/systemd/system/plexmediaserver.service to the correct group otherwise plex doesn't have permission to my files. Otherwise very great and useful script.

JasonMaloney commented 2 years ago

After every update I have to update /lib/systemd/system/plexmediaserver.service to the correct group otherwise plex doesn't have permission to my files. Otherwise very great and useful script.

Hi @RemonVanNieuwenhuizen, the correct way to implement such a customization with systemd is to use an override file. The easiest way to create one is to run "sudo systemctl edit plexmediaserver.service" and specify your group override there.

Hope this helps!

RemonVanNieuwenhuizen commented 2 years ago

Thank you @JasonMaloney, I just read the same at the top of the plex plexmediaserver.service file and wanted to put it here :).

[Service] Group=media

Would this be enough? There needs to be a newline after [Service], but the markdown doesn't work.