I am unable to use the CLI to perform any action, a simple action just getting the list of library doesn’t work. I do not get any errors it just doesn’t work.
Your override should not be touching LD_LIBRARY_PATH.
That export is invalid and incorrect syntax for a service override.
If you remove the export statement, that will make it correct.
You can omit the PLUGIN_PROCS change as the default is 6.
when you invoke the scanner at the command line, you need:
as user plex (you must su to it)
export all the environment variables as combined from the master service file with override adjustments
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/msdata/Plex/Library/Application Support"
export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
export PLEX_MEDIA_SERVER_TMPDIR=/msdata/Plex/tmp
export LD_LIBRARY_PATH=/usr/lib/plexmediaserver/lib (on 1.15.0 + )
"/usr/lib/plexmediaserver/Plex Media Scanner" --- options here ---
that’s correct. I overwrite the master as fresh each time.
You will have to write your own “MyPlexScanner.service” file and put it in /etc/systemd/system/MyPlexScanner.service
Using the same style as I have the, your ExecStart= will be the actual command line which you make work from the shell.
Your only customization will be to set as a periodic service with a timer value.
You can use the fstrim.service, which is a timed event, as a template.