Fix Plex logging by cheating with 'tail -f'

This commit is contained in:
Joe Groocock 2017-08-27 16:46:44 +01:00
parent 69a9f53e64
commit 80906b4d20
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -42,4 +42,6 @@ if [ -f "$PIDFILE" ]; then
rm -f "$PIDFILE" rm -f "$PIDFILE"
fi fi
tail -F "$PLEX_MEDIA_SERVER_CONFIG_DIR/Logs/Plex Media Server.log" >/proc/1/fd/1 2>/dev/null &
exec su-exec $UID:$GID "$PLEX_MEDIA_SERVER_HOME/Plex Media Server" exec su-exec $UID:$GID "$PLEX_MEDIA_SERVER_HOME/Plex Media Server"