It supports systemd and SYSV init
As do hundreds of debian packages.
and containers
I haven’t had a look at your docker containers but I’m not sure why you bother installing the debian package there at all. You can save a lot of complexity by creating the user in the Dockerfile directly with RUN useradd and then just COPYing the PMS files.
It must read the local configuration to determine what the user already has in place and what must still be created
I don’t understand this one. What exactly, in your opinion, does the preinst/postinst script have to read from my configuration? It should create the plex user if it doesn’t exist and add the video/render groups, create the /var directory and chown it to plex and finally enable and start the service.
The installer can’t rely on anything from my configuration, because I can choose to install the package first, then put unit overrides in place or the other way around. In fact, I can change the systemd configuration any time without re-running the package installer, and that’s how it’s supposed to work.
Why am I only hearing of this objection now?
I’m not usually reading the Plex forums and the 1.18.5 update was the first time I encountered the installer script. I didn’t report this bug for 1.18.5 because I thought maybe the installer is doing some first-time sanity check to make sure there are no leftover files from previous installations, which would have been fine with me.
- Look at how far Ubuntu has deviated from “standard” yet it’s the #1 distro.
No such thing as standard when it comes to linux distributions. There’s the systemd upstream defining how systemd works. When you want to support systemd you read systemd documentation and create your service file accordingly. Neither Debian nor Ubuntu are deviating significantly from how systemd is defined to work.
- I’m the one who has to support it here in the forums. I can’t count how many NOOB errors I’ve had to deal with.
- I already see several threads which are obvious user configuration problems
I understand dealing with users of vastly varying expertise is hard, but I fail to see how failing the install when arbitrary files are present in /etc/systemd/system/plexmediaserver.service.d helps.
As I have demonstrated above, arbitrary drop-in filenames work just fine, so I don’t get the point of this check. Please help me understand what you are trying to do.
What are “noobs” doing in the systemd configuration anyway? Is it mostly the USE_SYSLOG thing? systemd overrides are more of an advanced topic and users shouldn’t be pointed to go there really. Advanced users will know when they have to go there.
- We all make config errors when setting things up. Isn’t it about time the software point such things out versus beating our heads against the desk trying to find out where we have a typo or bad permissions?
Plex should thoroughly validate its own configuration. Descriptive error messages are very welcome. I do however, not want Plex to parse and validate my systemd configuration, because that is only to be parsed and validated by systemd. Your installer script is clearly violating the systemd standard by refusing to work with completely valid systemd configurations.
Work with me.
I’m really trying to, I wouldn’t have written multiple lengthy posts otherwise, but I have already linked 5 independent pieces of documentation stating that arbitrary filenames can be used for unit overrides. And if you’re still not convinced that your script is wrong, then I don’t know if it’s possible.
Don’t tell me how to support my product this late in the game as it won’t happen.
I really only see this as a bug. From my perspective the Plex package isn’t installing even though it should install just fine. This is due to some faulty logic in the installer script.