I would like to run plex media server on Cent OS 7 as a different user.
I am referring to this documentation guide here - https://support.plex.tv/hc/en-us/articles/200273978-Linux-User-and-Storage-configuration
It says on CentOS 6, /etc/sysconfig/PlexMediaServer is used via systemV init scripts. There are a bunch of settings in that file, including security limits.
However, the doc says on CentOS 7, the systemd plexmediaserver.service file contains the relevant information. However, this file doesn't have all the variables present on the CentOS 6 settings file. Specifically,
PLEX_MEDIA_SERVER_MAX_STACK_SIZE=10000
PLEX_MEDIA_SERVER_MAX_LOCK_MEM=3000
PLEX_MEDIA_SERVER_MAX_OPEN_FILES=4096
ulimit -l $PLEX_MEDIA_SERVER_MAX_LOCK_MEM
ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
ulimit -n $PLEX_MEDIA_SERVER_MAX_OPEN_FILES
However, these are NOT done in a CentOS 7 systemd service page. I do see that the following file is created in etc/security/limits.d/plex.conf.
plex soft stack 10000
plex soft nofile 4096
plex hard memlock 3000
plex soft memlock 3000
Now, when I change the user the server is run under, obviously the above limits do not get placed for that user. Why doesn't the documentation say that the above file should be edited in case the user is changed?
Or is plex not recommended to be run on SystemD machines and the preferred server is only systemV init based machines?