Created
January 19, 2015 18:38
-
-
Save pbhj/777a191a55491bf432eb to your computer and use it in GitHub Desktop.
start_pms from plexmediaserver 0.9.11.7.803-87d0708 install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#change these parameters in /etc/default/plexmediaserver | |
export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 | |
export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver | |
export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 | |
export PLEX_MEDIA_SERVER_TMPDIR=/tmp | |
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support" | |
test -f /etc/default/plexmediaserver && . /etc/default/plexmediaserver | |
if [ ! -d "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" ] | |
then | |
mkdir -p "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR" | |
if [ ! $? -eq 0 ] | |
then | |
echo "WARNING COULDN'T CREATE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR, MAKE SURE I HAVE PERMISSON TO DO THAT!" | |
exit 1 | |
fi | |
fi | |
export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" | |
export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}" | |
echo $PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS $PLEX_MEDIA_SERVER_MAX_STACK_SIZE $PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR | |
ulimit -s $PLEX_MAX_STACK_SIZE | |
(cd /usr/lib/plexmediaserver; ./Plex\ Media\ Server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment